Fixed: U4-6051 HasAccces method tests the roles of the wrong user
This commit is contained in:
@@ -518,7 +518,7 @@ namespace umbraco.cms.businesslogic.web
|
||||
|
||||
if (member != null)
|
||||
{
|
||||
foreach (string role in Roles.GetRolesForUser())
|
||||
foreach (string role in Roles.GetRolesForUser(member.UserName))
|
||||
{
|
||||
if (currentNode.SelectSingleNode("./group [@id='" + role + "']") != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user