Download & Extend

Update options field do not respect the permissions of the user module

Project:Advanced User
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

A role with only 'access advuser' permission can delete/Block an User even if the Permissions of the user Module do not allow him to administer users.
This happens only for the "update options" . The delete Action is ok (no delete allowed for this role)

Drupal Version 6.14

Comments

#1

Priority:normal» critical

#2

Status:active» needs review

Added a patch to fix the issue. With the patch, it now requires that the user have "administer users" permission on top of "access advuser" permission to view and edits.

The simpler fix could be to look for "administer users" to allow access for the advuser menu. But, this additional permission, I guess, allows for finer control over who gets to do advuser actions!

AttachmentSize
advuser-614676.patch 854 bytes

#3

Status:needs review» reviewed & tested by the community

I haven't tested it but this looks reasonable to me and may be committed to CVS.

#4

Version:6.x-2.3» 6.x-3.x-dev
AttachmentSize
advuser-6.x-3.0.diff 1.16 KB

#5

Here is the patch I've settled on for this.

AttachmentSize
advuser-6.x-3.0.diff 1.16 KB

#6

Version:6.x-3.x-dev» 6.x-2.x-dev

Backporting to 2.x branch.

AttachmentSize
advuser-6.x-2.x.diff 1.2 KB

#7

Status:reviewed & tested by the community» fixed

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here