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.
Problem/Motivation
Noticed while saving on the user's group reference field (like found in og_example) that OgMembershipCrud
would send people to OG_STATE_PENDING
. Which doesn't make sense for the administer users who have access to that field.
Proposed resolution
Allow 'administer group' permission access to OG_ACTIVE_STATE
Comment | File | Size | Author |
---|---|---|---|
#2 | allow_administer-2770927-2.patch | 1.04 KB | joelpittet |
Comments
Comment #2
joelpittetHere's a patch that adjusts the conditions for the administer group permission.
Comment #4
joelpittetThe OgFieldWidgetTestCase fails are kinda strange.
The OgAccessTestCase::testMemberShipRequestStatus failure is because the drupal user 1 which has administer group permissions I believe.
Comment #6
alesr CreditAttribution: alesr at BigScreen Group commented@joelpittet - @AronNovak tackled with this in https://github.com/Gizra/og/pull/255/commits/1b32b2c7d60f6245bf85e35091f... and OgBehaviorHandler was rewritten so this patch doesn't apply any more.
Does the original issue still persist?
Comment #7
joelpittetthanks @alesr, I'll have to try this out. I'll let you know.
Comment #8
joelpittetThanks @alesr, I believe that did fix it, I'm removing the patch from production.