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 }); } }