After installing a new Drupal site with a custom profile enabling many contrib modules, I found an administrator account was lacking many necessary privileges. I looked at adminrole.module and found it only rebuilds permissions when submitting the modules page (which suggests it will also not rebuild when modules are enabled/disabled via drush, which is our primary management tool).
See also #785246: CCK content type import and #753606: Support "Field Permissions" module... I can't say for sure, but I would imagine any scenario that would require rebuilding permissions would flush the caches, so I think it would be best for adminrole to do the rebuild on a cache clear. Patch submitted, tested with drush cc all.
| Comment | File | Size | Author |
|---|---|---|---|
| adminrole_cache.patch | 789 bytes | mikeryan |
Comments
Comment #1
q0rban commented+1
Comment #2
q0rban commentedComment #3
jack.r.abbit commentedThat change worked for me for when you clear the caches.
However, it still doesn't cover all cases. We need permissions to be updated when a new content type is added too. That action does not appear to clear the caches. But that is a different issue.
Comment #4
robin van emden commentedPatch tested, works for me. Please commit.
Comment #5
nancydru