Restrict content access to only group members?

Created on 23 March 2018, about 7 years ago
Updated 20 March 2025, 18 days ago

I'm feeling pretty dim about this but I can't figure out a way to restrict access to nodes within a group to /only/ members of that group. It seems that by returning a neutral access result in the gnode_node_access hook, the module allows any authenticated user to access any content. I tried removing the global "access content" permission from the authenticated user, but that makes it so that no one (not even members of the group) can access the group content. It seems like to get what I want the gnode_node_access hook would have to forbid access for users that are not members of any group that the content belongs to... am I missing something?

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States abourassa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024