refactor user details plugin interface

This commit is contained in:
Gary Sharp
2023-04-14 16:37:42 +10:00
parent 215e9863a2
commit 22dad072b9
22 changed files with 144 additions and 241 deletions
+4 -1
View File
@@ -114,7 +114,10 @@ namespace Disco.Web.Controllers
}
// Populate Custom Details
m.PopulateDetails(Database);
if (Authorization.Has(Claims.User.ShowDetails))
{
m.PopulateDetails(Database);
}
// UI Extensions
UIExtensions.ExecuteExtensions<UserShowModel>(this.ControllerContext, m);