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
+5 -2
View File
@@ -283,8 +283,11 @@ namespace Disco.Web.Controllers
m.DeviceProfileWirelessProfileProviders = m.Device.DeviceProfile.GetWirelessProfileProviders().ToList();
}
// Populate Custom Details
m.PopulateDetails(Database);
if (Authorization.Has(Claims.User.ShowDetails))
{
// Populate Custom Details
m.PopulateDetails(Database);
}
// UI Extensions
UIExtensions.ExecuteExtensions<DeviceShowModel>(this.ControllerContext, m);