I'm using the patched version of comment_og for OG 7.x-2.x. Everything seems to work except when I enable the commentsblock module (in this case the permissions seem to be ignored).

Any idea what needs to be patched in order to make these modules compatible?

Comments

meanderix created an issue. See original summary.

meanderix’s picture

Issue summary: View changes
meanderix’s picture

Issue summary: View changes
gunwald’s picture

I had the same problem. I wrote a patch for the commentsblock module:
https://www.drupal.org/node/2601530#comment-10493220
Please test it.

meanderix’s picture

StatusFileSize
new665 bytes

I will take a look at the patch. I've realized that there was a completely different issue involved though. If there are only unapproved comments in a node, then they will not be visible unless you have the "administer comments" permission. When one comment is approved, the remaining unapproved ones will be visible regardless of the "administer comments" permission.

I've kind of worked around this problem by modifying the comment_og_access function. All authenticated users are given the "administer comments" permission in order to expose the comments to comment_og. However, with the attached patch the users will have the permissions given by comment_og rather than all permissions.