Updated Azure config files

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-05-17 15:48:44 -07:00
parent 745caf3829
commit 728328b8ed
3 changed files with 189 additions and 133 deletions

View File

@@ -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))) {