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.

Comments

drasgardian’s picture

Status: Active » Needs review
StatusFileSize
new6.55 KB

Patch attached.

Looks like og_user_access() requires a group_type parameter now. So patch should also make the module compatible with latest og.

drasgardian’s picture

StatusFileSize
new6.86 KB

Patch updated so comment_og doesn't hijack permissions of comments on nodes that aren't group related.

brad.bulger’s picture

i redid this to apply on top of the OG 2.x compatibility patch from #1833006: Compatibility with OG 7.x-2.x

socialnicheguru’s picture