Skip to content

Commit 662ed03

Browse files
committed
Fixed: U4-6051 HasAccces method tests the roles of the wrong user
1 parent 3c01dcb commit 662ed03

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
@@ -511,7 +511,7 @@ public static bool HasAccces(int documentId, object memberId)
511511

512512
if (member != null)
513513
{
514-
foreach (string role in Roles.GetRolesForUser())
514+
foreach (string role in Roles.GetRolesForUser(member.UserName))
515515
{
516516
if (currentNode.SelectSingleNode("./group [@id='" + role + "']") != null)
517517
{

0 commit comments

Comments
 (0)