Details
-
Type:
Improvement
-
Status: Done/Fixed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 4.1.1
-
Fix Version/s: 4.4.0
-
Component/s: None
-
Labels:None
Description
To allow a user to see the "User ID" field on a contact record in CiviCRM, the user must have the following drupal permissions: Administer CiviCRM and Administer Users.
This combination seems a bit strange, unless I've missed some logic. Perhaps a better way to control the visibility of this field would be via the existing "View user profiles" permission.
I haven't been able to test this on the demo site as don't have access to permissions..
Attachments
Issue Links
- has patch in
-
CRM-12499 Allow users with 'access user profiles' to access $userRecordUrl
-
- Done/Fixed
-
Peter - Kurund and I played around with this a bit fairly recently. If you check CRM/Contact/Page/View.php line 251 in trunk - you'll see that we got stumped trying to use the view user profile perm (which i think SHOULD BE valid for D7 but not D6):
// To do: we should also allow drupal users with CRM_Core_Permission::check( 'view user profiles' ) true to access $userRecordUrl
// but this is currently returning false regardless of permission set for the role. dgg
If you can figure this out - patch would be welcome (with conditional for d7 vs d6).