Problem 1

image_1 :

I have set the permissions of the administrator like this :
Leave group (Unchecked)

image_2 and image_7 and image_8 :

To replace the default drop-down button, I created group views.
- a view for "Join the group". "Access: Group Permission | Join the group: Join group"
- a view for "Exit group". "Access: Group Permission | Join the group: Leave group"
- a view for "Create content". "Access: Group Permission | Administer the group"

image_3 :

When I am not a member of the group, the block of my "Join group" view is displayed and the others are not displayed.
When I am a member of the group, the block of my "Leave group" view is displayed and the others are not displayed.

image_4 :

When I am an administrator of a group, all views are displayed. Why ? The permissions of my views are correctly set.

Problem 2

image_5 :

All permissions "Relationship" are unchecked

image_6 :

The administrator of the group always has access to "Related entities". Why ?
What is the purpose of this tab? There is already a "Content" and "Member" view.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zenimagine created an issue. See original summary.

zenimagine’s picture

Issue summary: View changes
kristiaanvandeneynde’s picture

Category: Bug report » Support request
Priority: Critical » Normal

Not critical. I can assure you the admin's permissions are taken into account.

Here's a few scenarios you might be running into:

  • You are testing with user 1, who has all permissions
  • You are testing with an admin user (site role: admin), who has all permissions
  • You are testing with an account that has the global permission "bypass group access"

The related entities tab is there for when modules add plugins that enable other content entities to be added. Or for power-admins to see all related entities in one view, regardless of their entity type.