Fixed: U4-6051 HasAccces method tests the roles of the wrong user

This commit is contained in:
Chris Roberts
2014-12-23 16:32:24 +00:00
parent 7d5bce76c2
commit d5b6428cdc

View File

@@ -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)
{