Username passed into roles. Added initial roles store functionality. Updated user roles functionality to persist the member group.

This commit is contained in:
Emma Garland
2021-02-01 17:43:11 +00:00
parent 8caf2a0e62
commit 152ad9684c
10 changed files with 133 additions and 133 deletions

View File

@@ -527,7 +527,6 @@ namespace Umbraco.Web.BackOffice.Controllers
// their handlers. If we don't look this up now there's a chance we'll just end up
// removing the roles they've assigned.
IEnumerable<string> currentRoles = await _memberManager.GetRolesAsync(identityMember);
//IEnumerable<string> currentRoles = _memberService.GetAllRoles(contentItem.PersistedContent.Username);
// find the ones to remove and remove them
IEnumerable<string> roles = currentRoles.ToList();
@@ -538,7 +537,6 @@ namespace Umbraco.Web.BackOffice.Controllers
if (rolesToRemove.Any())
{
await _memberManager.RemoveFromRolesAsync(identityMember, rolesToRemove);
//_memberService.DissociateRoles(new[] { contentItem.PersistedContent.Username }, rolesToRemove);
}
// find the ones to add and add them