Prevent internal member groups from showing up in group list on member properties.

Prevent internal member groups from showing up in the member group tree listing.
This commit is contained in:
Claus
2015-08-24 16:14:29 +02:00
parent add2f57397
commit f44875d072
2 changed files with 17 additions and 20 deletions

View File

@@ -273,10 +273,10 @@ namespace Umbraco.Web.Models.Mapping
var result = new Dictionary<string, bool>();
foreach (var role in Roles.GetAllRoles().Distinct())
{
result.Add(role, false);
// if a role starts with __umbracoRole we won't show it as it's an internal role used for public access
if (role.StartsWith(Constants.Conventions.Member.InternalRolePrefix) == false)
{
result.Add(role, false);
if (username.IsNullOrWhiteSpace()) continue;
if (Roles.IsUserInRole(username, role))
{