Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#3 | og_moderation-member-in-multiple-groups-1678486-3.patch | 1.73 KB | heyyo |
Comments
Comment #1
jastraat CreditAttribution: jastraat commentedI can't recreate this problem in 7.x-2.0. Perhaps try upgrading?
Comment #2
shenzhuxi CreditAttribution: shenzhuxi commentedComment #3
heyyo CreditAttribution: heyyo commentedI 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.
Comment #4
shenzhuxi CreditAttribution: shenzhuxi commentedI 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.