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.
Whenever I disable ACL, any new content, whether it be forum, blog, or story posts, are unviewable unless the user is logged in.
Comments
Comment #1
drupnuts CreditAttribution: drupnuts commentedI think I should elaborate and say that the content is just invisible. There are no 'access denied' errors, it just looks like the content doesn't exist at all.
Comment #2
Ainur CreditAttribution: Ainur commentedI’ve made a test on my Drupal installation:
Installed both ACL and Forum Access modules, configured one form as follows:
Create/Read/Edit/Delete: authenticated only, none for anonymous and posted some topics.
Then disabled both of the modules, and created another topic in that forum.
The result was that I can’t access it as anonymous user I get Access Denied message, but I do can access’em as authenticated user.
Cache is disabled.
Comment #3
Ainur CreditAttribution: Ainur commentedForgot to mention that I get same behaviour with any other content type.
Comment #4
salvisAfter disabling ACL you should go to admin/content/node-settings and click on the [Rebuild permissions] button.
Comment #5
fagohm, in content_access I've implemented a solution for that. Perhaps we should add to acl too:
in short:
Comment #6
salvisI don't think calling node_access_rebuild() is a good idea, because it can take a very long time, and even fail with a timeout.
I've already written a disable hook that displays a message, asking the user to rebuild permissions, I just haven't had the time to commit it yet.
Why do you hook node_access_records?
Comment #7
salvisComment #8
fagohttp://api.drupal.org/api/function/node_configure_rebuild_confirm_submit/5
If you look at the code it does exactly the same.. Yes, it can timeout, this is a known and not fixed d5 bug.. :/ As I know this is only fixed in d6 by using the batching api.
Comment #9
salvisYes, I know. But doing it automatically as part of disabling the module is sort of like a tipping truck that dumps its load whenever you turn off the engine. It's an unexpected side effect, and I don't think CA should do that.
The user may not necessarily want to rebuild permissions. And he's certainly not expecting that disabling a module could take a minute or two. That's why the [Rebuild permissions] button displays information and asks for confirmation before proceeding.
Comment #10
salvis@fago: see Batching time/memory-consuming operations and specifically node_access_rebuild in a batch.
Comment #11
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #12
salvis@fago: see http://drupal.org/node/215974#comment-712837 for why we shouldn't force a permissions rebuild.
Comment #13
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.