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.
Using module_grants-7.x-1.x with og-7.x-2.x and taxonomy_access seems to work well except for unpublished content. Any nodes that are unpublished are visible to all roles including anonymous.
I see in module_grants 6.x issues there were several related to this problem.
I also noted that there are suggested work flows with revisioning but did not want to add more modules just to solve issue this unless it is the only way.
I would appreciate any suggestions on how to solve this.
Thanks.
Comments
Comment #1
RdeBoerSuggest you add Revisioning to the mix.
Comment #2
izmeez CreditAttribution: izmeez commentedOk, I'll give that a try.
Comment #3
izmeez CreditAttribution: izmeez commentedThe revisioning and workflow modules are impressive.
But, what if you don't really need them? It adds a more complicated configuration.
It seems to me that there is something in module_grants that may need closer examination and maybe module_grants needs a hook that revisioning can use to alter what is needed for moderation.
Looking at the code in module_grants there are comments in the function alluding to this issue,
The module_grants module is doing some heavy lifting to allow multiple access control modules to work well together so I am not really sure where such a change could be made.
Comment #4
izmeez CreditAttribution: izmeez commentedI see this is very complicated according to https://www.drupal.org/node/408816#appendix
Comment #5
izmeez CreditAttribution: izmeez commentedI have tested the alternate modules_access from #791972-32: D7 port of Module Grants and it appears to do what I need.
On early testing, it does observe unpublished and admin behaviour while ANDing grants from og and taxonomy access.
Comment #6
Leeteq CreditAttribution: Leeteq commented