Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drupal user 1 can't see microsites on microsite admin page #358

Open
stephen-cox opened this issue Dec 5, 2022 · 3 comments
Open

Drupal user 1 can't see microsites on microsite admin page #358

stephen-cox opened this issue Dec 5, 2022 · 3 comments

Comments

@stephen-cox
Copy link
Member

stephen-cox commented Dec 5, 2022

Drupal user 1 has access to the microsites admin page (/admin/microsites) and can create microsites, but can't then see the Group entity that is created. This is very confusing.

Making Drupal user 1 a Micsrosite Controller doesn't solve the issue. Giving the Microsite group admin the 'Access all entities overview' permission seems to fix it.

image

@ekes
Copy link
Member

ekes commented Dec 5, 2022

Is this because the User 1 is a member admin of the particular microsites that aren't being shown? ie not getting the controller insider permission (which has access all entities overview) but instead the admin permission (without it).

@stephen-cox
Copy link
Member Author

They are indeed admins on the group, as they created the Microsite and so have been given the group admin permission when it was created.

This makes it even odder (although this is likely my not fully understanding how the new group permissions work). User 1 is an admin on the group, so gets the admin member permissions (which don't include viewing the entity). When we give the user the Controller role, it should get the group controller permissions (which include viewing all group entities). But permissions are not combined in a that allows the user to see the group entity.

@ekes
Copy link
Member

ekes commented Dec 5, 2022

So I think this might quite possibly be because of the way Group Permissions module applies its overrides, rather than how Group calculates the initial permissions, but this would need testing.

[I think the roles permissions within the group should be additive. Group Permissions however needs the total permissions for the individual to override those of the default from Group. I have a hunch it might not be doing the total permissions for the user. Have to check though. Might be a bug further up.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants