In my scenario, I have 2 different access levels within groups. The lowest role should not be able to view comments.
I can't just use core's 'View comments' permission, because a user might be a member of two groups with different roles. i.e. able to view comments within one group but not the other.
comment_og "controls permissions to edit, post, approve, and delete comments within groups".
It'd be great if it could be extended to also control view access.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | comment_og-view_permission-plus-1833006-OG2.x-compat-2462165-3.patch | 3.75 KB | brad.bulger |
| #2 | comment_og-view_permission-2462165-2.patch | 6.86 KB | drasgardian |
Comments
Comment #1
drasgardian commentedPatch attached.
Looks like og_user_access() requires a group_type parameter now. So patch should also make the module compatible with latest og.
Comment #2
drasgardian commentedPatch updated so comment_og doesn't hijack permissions of comments on nodes that aren't group related.
Comment #3
brad.bulger commentedi redid this to apply on top of the OG 2.x compatibility patch from #1833006: Compatibility with OG 7.x-2.x
Comment #4
socialnicheguru commentednot compatible with https://www.drupal.org/node/1833006#comment-10493946