예제 #1
0
 void manageUsers_CreatedRole(object sender, GlobalPermissionsEventArgs e)
 {
     if (UserManager.Default.RoleProvider.Name == e.RoleProviderName)
     {
         GlobalPermissions.Instance.SetPermissions(e.GlobalPermissions, 0, UserManager.Default.RoleProvider.Name, new string[] { e.Role });
     }
 }
 void manageUsers_CreatedRole(object sender, GlobalPermissionsEventArgs e)
 {
     if (UserManager.Default.RoleProvider.Name == e.RoleProviderName)
     {
         GlobalPermissions.Instance.SetPermissions(e.GlobalPermissions, 0, UserManager.Default.RoleProvider.Name, new string[] { e.Role });
     }
 }