1

I have a view of user profiles configured as such.

enter image description here

However, I'd like to restrict this view to only members of the same group. Is this possible? How should I approach it?

  • Under PAGE SETTINGS, in Access: Permission <-- click on permission and see if there is an option there. – No Sssweat Jan 28 '16 at 21:41
  • There is only options for the standard: User Role, OG Permission, and Permission. However, I'm not seeing how check for group membership that I'm specifying in the Contextual Filter – Rick Jan 29 '16 at 22:13
  • you would have to do this pro-grammatically. use global user to load the user group of the logedin user. The code for that you will have to figure out. Then you will need to grab the last /% from the url. Then all you need is an IF statement to compare the two, If it's true you embed the view usign views_get_view() Embed Drupal Views Using PHP – No Sssweat Jan 29 '16 at 23:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.