Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Sites aren't visible to users with the aegir client role through the sites tab (hosting/sites). Presently, the only way for a client to view/edit their sites is to find a task in the queue runner about their site and click through from there.
A similar situation exists in the platforms tab - users with the 'aegir client' role aren't able to see any platforms.
On hostings/sites, the view is checking that the client id is able to view the site & platform & client & dbserver & install profile package. The default grants permit an aegir client to see the site, install profile package, and client. However, since the aegir client doesn't have permission to view the platform or dbserver the entire select returns an empty list. The view hosting platform is not granted though 'view platform' is assigned to the 'aegir client' role by default (rebuilding node access permissions doesn't change anything). 'aegir clients' do not have the 'view server' permission, though once granted they are able to see the servers through the server tab.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | hosting-2883695-aegir_client_may_not_see_sites_and_platforms-0.patch | 2.83 KB | kienan |











Comments
Comment #2
kienan CreditAttribution: kienan commentedHere's a patch that resolves the issue. There are a few points it addresses:
The consequence of this change is that users may now see sites, platforms, and web- and database-servers associated with those platforms. While I wonder if viewing the servers is desired, I think this is more in line with what is intended to happen.
Comment #3
kienan CreditAttribution: kienan commentedComment #4
helmo CreditAttribution: helmo at Initfour websolutions commentedThanks al lot ... first test looks very good.
Comment #5
helmo CreditAttribution: helmo at Initfour websolutions commentedSomething to add to the release notes .... "This update hook uses a batch to rebuild the node_access information, depending on the system size you'll see hosting_client_update_7001 repeated for a while."
Comment #6
kienan CreditAttribution: kienan commentedDocumentation PR: https://github.com/aegir-project/documentation/pull/42
Comment #7
helmo CreditAttribution: helmo at Initfour websolutions commentedComment #9
helmo CreditAttribution: helmo at Initfour websolutions commented