Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
screenshot20170116_211448535.png | 284.65 KB | zenimagine |
Comments
Comment #2
zenimagine CreditAttribution: zenimagine commentedComment #3
dang42 CreditAttribution: dang42 as a volunteer commentedI 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.
Comment #4
Soul88We 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.