mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Updated Azure config files
--HG-- branch : dev
This commit is contained in:
@@ -65,6 +65,8 @@ namespace Orchard.Roles.Services {
|
||||
|
||||
foreach (var role in rolesToExamine) {
|
||||
RoleRecord roleRecord = _roleService.GetRoleByName(role);
|
||||
if ( roleRecord == null )
|
||||
continue;
|
||||
foreach (var permissionName in _roleService.GetPermissionsForRole(roleRecord.Id)) {
|
||||
string possessedName = permissionName;
|
||||
if (grantingNames.Any(grantingName => String.Equals(possessedName, grantingName, StringComparison.OrdinalIgnoreCase))) {
|
||||
|
Reference in New Issue
Block a user