I'm a bit confused about the presence of permissions like 'Edit users with role anonymoususer'.

Surely there is no user with this role that can be edited, only the special user 0.

Files: 
CommentFileSizeAuthor
#1 remove_anonymoususer_permissions-1864910-1.patch720 bytesBWPanda
PASSED: [[SimpleTest]]: [MySQL] 1,141 pass(es).
[ View ]

Comments

BWPanda’s picture

Version:7.x-1.0-beta1» 7.x-1.x-dev
Status:Active» Needs review
StatusFileSize
new720 bytes
PASSED: [[SimpleTest]]: [MySQL] 1,141 pass(es).
[ View ]

Here's the world's simplest patch that fixes this issue.

GeduR’s picture

Hi! I agree, include the anonymouse user has no sense.

user_roles($membersonly = FALSE, $permission = NULL)

Patch works! :)

GeduR’s picture

Status:Needs review» Reviewed & tested by the community

I forgot to move it to reviewed.

AdamPS’s picture

Assigned:Unassigned» AdamPS
Issue summary:View changes
Status:Reviewed & tested by the community» Needs review
Issue tags:+beta2

I intend to fix this as part of #2378869: Meta-issue for Beta 2 release. Please sign up as a follower of that issue and see the patch there that I would like feedback on.

It's effectively a similar patch but I couldn't take your patch directly because there are so many issues to fix affecting the same lines of code.

AdamPS’s picture

Version:7.x-1.x-dev» 7.x-2.0-beta1
Status:Needs review» Closed (fixed)