Settings for ModuleDefinitions #1829

Add Update settings for the ModuleDefinition
This commit is contained in:
Leigh
2021-11-24 16:06:52 +01:00
parent df00f53e54
commit a21a2ab3bb
4 changed files with 30 additions and 1 deletions

View File

@ -154,6 +154,9 @@ namespace Oqtane.Controllers
break;
case EntityNames.Page:
case EntityNames.Module:
case EntityNames.ModuleDefinition:
authorized = User.IsInRole(RoleNames.Host);
break;
case EntityNames.Folder:
authorized = _userPermissions.IsAuthorized(User, entityName, entityId, permissionName);
break;