Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
To reproduce, create a user and a client, and assign the user to the client. Make note of the client nid (i.e., "node/88") Assign the user the "Aegir client" role. Login as said user and navigate to the URL of the client node. You'll get an "access denied" message. Oddly enough, going to the client edit form (i.e., "node/88/edit") works (nothing wrong with the "Edit own client" permission!)
Comment | File | Size | Author |
---|---|---|---|
#1 | view_client_perm_1236490_1.patch | 891 bytes | ergonlogic |
Comments
Comment #1
ergonlogicThis should be fixed by checking $account->uid rather than $user->uid in hosting_client_access(), on line 91 of hosting_client.module, as per the attached patch.
Comment #2
ergonlogicAlso, committed to my dev repo: http://drupalcode.org/sandbox/ergonlogic/1226310.git/commit/86747789494f...
Comment #3
Steven Jones CreditAttribution: Steven Jones commentedGood catch, pulled the fix into the main repo.