Skip to content

Commit d5b6428

Browse files
committed
Fixed: U4-6051 HasAccces method tests the roles of the wrong user
1 parent 7d5bce7 commit d5b6428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/umbraco.cms/businesslogic/web/Access.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ public static bool HasAccess(int documentId, object memberId)
518518

519519
if (member != null)
520520
{
521-
foreach (string role in Roles.GetRolesForUser())
521+
foreach (string role in Roles.GetRolesForUser(member.UserName))
522522
{
523523
if (currentNode.SelectSingleNode("./group [@id='" + role + "']") != null)
524524
{

0 commit comments

Comments
 (0)