Closed (fixed)
Project:
Addresses
Version:
6.x-1.10
Component:
Code, user related
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2011 at 13:08 UTC
Updated:
14 Apr 2011 at 19:31 UTC
Issue: Users with 'administer user' permission are not able to edit others addresses. Currently, only the authoring user or admin (uid: 1) can view/edit/delete addresses.
Line 43 of addresses_user.module needs to be changed.
41 function _addresses_user_access($account) {
42 global $user;
43 - if (($account->uid == $user->uid || $user->uid == 1)
43 + if (($account->uid == $user->uid || user_access('administer user'))
Comments
Comment #1
sean3z commentedCorrection: user_accesss() should read 'administer users'. Sorry for typo lol
43 if (($account->uid == $user->uid || user_access('administer users'))Comment #2
AlexisWilke commentedsean3z,
Would you be okay with using an addresses specific permission instead of using the system 'administer users' permission?
Thank you.
Alexis
Comment #3
sean3z commentedFor my project's needs, I prefer the 'administer users' permission. Makes permission management easier IMO.
Comment #4
AlexisWilke commentedCommit:
http://drupalcode.org/project/addresses.git/commit/834657b
Thank you.
Alexis
Comment #5
AlexisWilke commented