3

How can I offer users an option on all node/comment postings to limit access to their own user role group? Essentially making the conversation accessible only for the members of their own year who they are together with in person.

Each year gets its own user role. There are multiple years of group members using the site, and sometimes members would like to limit sensitive content to themselves, as old members retain access to the site otherwise.

Ideally, it would just be a single checkbox that reads 'make this content private to your peer group' without offering any other options, which should restrict the content to their own peer group and to admins.

2

The short answer is: Yes, you can do this with the Group module.

Here are some instructions on how to do so:

  1. Install the Group module and its dependencies.
  2. Enable the Group Node module as well (a sub-module of Group).
  3. Navigate to admin/group, or click the new Group link in the admin toolbar.
  4. Create a Group Type "Year".
  5. Configure the permissions for that group type to allow members to create and/or view nodes (outsiders will not have access unless checked).

There are numerous things you could add to the mix, such as a "Year admin" group role. But giving a sitewide admin the "Bypass group access" permission will do just fine as well.

You can also delete the group_admin role under Group > Group Roles should you not need it.

If you find any bugs or need support you can also use the Group module's issue queue.

Disclosure: I'm the module maintainer.

  • Thank you, I ended up using taxonomy access control because I wanted to give the users the option to make something private or not, and did not know how to make it optional with your group module. From what I understand, in what you propose as well, all is private to the posting group by default. – whatsnewsisyphus Mar 27 '14 at 18:51

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.