Deleted MembersRoleProvider. Switched to role store. Made everything single not plural. Fixed formatting.

This commit is contained in:
Emma Garland
2021-03-04 17:29:11 +00:00
parent 4cb9923c24
commit e124ee336a
23 changed files with 187 additions and 292 deletions

View File

@@ -237,6 +237,7 @@ namespace Umbraco.Cms.Core.Models.Mapping
var userRoles = username.IsNullOrWhiteSpace() ? null : _memberService.GetAllRoles(username);
// create a dictionary of all roles (except internal roles) + "false"
//TODO: use MembersRoleStore
var result = _memberGroupService.GetAll()
.Select(x => x.Name)
// if a role starts with __umbracoRole we won't show it as it's an internal role used for public access