Hello,

I created a view that displays the list of members of a group.
I want this view to be visible only to the group administrator.

How can I restrict access to a view for the group administrator ?

There are no settings in "Page Settings : Access".

Thank you in advance

CommentFileSizeAuthor
screenshot20170116_211448535.png284.65 KBzenimagine
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zenimagine created an issue. See original summary.

zenimagine’s picture

Component: User interface » Code
Category: Support request » Feature request
dang42’s picture

I haven't tested this, but could you use Rules? Check to see if the person accessing the view is the group admin and, if not, block access or redirect?

I assume this would work if the view has a URL...

It isn't an ideal solution, but if you can't write the code to do it & no one posts an alternative, it might be worth checking out.

Soul88’s picture

Status: Active » Closed (outdated)

We thank everyone for their collaboration on this issue, but as the D7 version is no longer supported, we will now close all D7 issues to keep the issue queue a bit tidier. This information won't go anywhere, it just won't show up on the list of open issues anymore.

Please see: https://www.drupal.org/project/group/issues/3163655 and https://www.drupal.org/project/group/issues/3203863#comment-14100281 for more details.