I have been using OG Moderation successfully on my site for several months, then started getting reports from users that it was no longer working. The only changes that I have been making to the site are module upgrades. I could not identify the source of the problem so I:
- Did a fresh install with the latest core and modules (see attached png).
- Created a group content type called OG Group and added field Group Roles and Permissions
- Created a group content, content type called OG Group Content and created both published and unpublished content
- Gave OG Administrator role all permissions in Home » Administration » Configuration » Organic groups » OG permissions overview
- Confirmed OG Administrator role has all permissions in Home » Administration » Configuration » Organic groups » OG permissions overview
- Set field Group Roles and Permissions in OG Group to Override Default Roles and Permissions (needed for my particular use case)
- Added authenticated users: og_admin and og_member
- Added users og_admin and og-member to OG Group and gave og_admin the Administrator role
- Created a view to pull ALL OG Content regardless of whether it is published or not
- THE ISSUE: og_admin can only ever see the published content listed in the view regardless of what Access restrictions they are assigned (None, OG permission, Permission, Role) - I even tried no restrictions and still the og-admin only sees the published content. They need to see the unpublished content in their list as well.
I feel like I must be missing something in the settings. Any insight would be appreciated. Thanks!!
Comment | File | Size | Author |
---|---|---|---|
Drupal core and modules versions.png | 53.67 KB | sassafrass |
Comments
Comment #1
shenzhuxi CreditAttribution: shenzhuxi commentedI just fix a bug about the access. Please check is it fix your problem.
Comment #2
paranojik CreditAttribution: paranojik commentedHad similar problems. I can confirm that the problem is fixed in -dev. Thanks!
Comment #3
shenzhuxi CreditAttribution: shenzhuxi commentedComment #5
frikovc CreditAttribution: frikovc commentedThis fixes the view unpublished permission but have a huge performance hit and practically kills my page for authenticated users with very long (cca 25s) loading times. Without module (specifically function og_moderation_node_grants($account, $op) ) pages loads in 3-5s for authenticated users.
This applys to version 2.2. and 2.x-dev.