Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
user system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
15 Oct 2006 at 17:42 UTC
Updated:
29 Oct 2006 at 20:15 UTC
Jump to comment: Most recent file
when i first wrote the code for hook_user_operations, i unfortunately neglected to realize that the role assignment shortcuts should only be available to users w/ the 'administer access control' permission. thus currently anybody w/ 'administer users' permissions can assign themselves any role and gain unauthorized access to other areas of the site. not good...
attached patch corrects this.
tested and working well on a clean current HEAD.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | user_op_0.patch | 2.73 KB | hunmonk |
| user_op.patch | 2.75 KB | hunmonk |
Comments
Comment #1
hunmonk commentedchx suggested a += instead of an array_merge.
once again tested and working fine on a clean HEAD
Comment #2
chx commentedComment #3
dries commentedCommitted to CVS HEAD. Thanks.
Comment #4
(not verified) commented