mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
fix
This commit is contained in:
@@ -120,6 +120,11 @@ namespace Orchard.ContentPermissions.Drivers {
|
|||||||
|
|
||||||
protected override DriverResult Editor(ContentPermissionsPart part, IUpdateModel updater, dynamic shapeHelper) {
|
protected override DriverResult Editor(ContentPermissionsPart part, IUpdateModel updater, dynamic shapeHelper) {
|
||||||
|
|
||||||
|
// ensure the current user is allowed to define permissions
|
||||||
|
if (!_authorizer.Authorize(Permissions.GrantPermission)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
var allRoles = _roleService.GetRoles().Select(x => x.Name).OrderBy(x => x).ToList();
|
var allRoles = _roleService.GetRoles().Select(x => x.Name).OrderBy(x => x).ToList();
|
||||||
|
|
||||||
var model = new ContentPermissionsPartViewModel();
|
var model = new ContentPermissionsPartViewModel();
|
||||||
|
Reference in New Issue
Block a user