I see that a user with limited permissions is unable to see any sites. Even though they are under the right Client.
Steps to reproduce:
- Start with a clean aegir install with the 'Hosting Clients' feature enabled
- Create a user with only the 'aegir client' role
- Create a new 'Client' node
- Add new user to the client
- Create a site (as admin) for the new client.
- login as the new user
- The new site is not visible in the list of sites
The views module seems to thoroughly check the node_grants... but we only grated something on the site automatically.
On the platform you could go to the 'Clients' tab and allow access for the client.
But views also checks the server ...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | user_with_only_the-2451731-2.patch | 3.68 KB | helmo |
| #1 | user_with_only_the-2451731-1.patch | 2.54 KB | helmo |
Comments
Comment #1
helmo commentedHere's a patch I'm working on.
Comment #2
helmo commentedI've now two possible solutions:
1. patch the node_grants, and default add permission to 'view server' to the 'aegir client' role.
2)
Remove the relation to db_server from the 'hosting site list' view.
It's currently not used.... so out of the box there would be no impact.
Comment #3
formatC'vt commentedpatch 2 works fine for me, thx.
Comment #4
gboudrias commentedComment #5
gboudrias commentedPushed patched 2.