We have a scenario where a person can be group admin for one group and just a regular group member in other. If we enable the moderation for only group administrators, then people can even publish/promote contents for the groups where they are just members.

Please help!!!

Thanks
Amit

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jastraat’s picture

I can't recreate this problem in 7.x-2.0. Perhaps try upgrading?

shenzhuxi’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)
heyyo’s picture

Version: 7.x-1.0 » 7.x-2.x-dev
Status: Closed (cannot reproduce) » Needs review
FileSize
1.73 KB

I also have this bug with 7.2.x

The problem is in hook_form_alter which overrides permissions by checking the user permission in all its groups when the form is Node Add instead of just checking the permission of the user in the current group of this new node.
I used in my patch a call to function og_context from module og_context.

shenzhuxi’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » shenzhuxi
Status: Needs review » Fixed

I applied the patch to dev and put og_context dependency back.
I feel that we still need to keep en eye on multiple group conditions.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.