When I modify the permissions on a node, the modification doesn't go into affect until I clear caches. Is this working as an intended or a bug?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dureaghin’s picture

Looks like a bug. Try this https://www.drupal.org/node/64114

abarpetia’s picture

After saving node, node_access_acquire_grants() function get fired which updated node permissions in database. So, I think in order to reflect this changes there is also need to implement cache_clear_all() function.

I have created patch which do this please take a look. This patch created on 7.x-1.x-dev version so, changing ticket drupal version.

  • abarpetia authored 0887a92 on 7.x-1.x
    Issue #2508631 by abarpetia: Permissions not updated until cache cleared
    
gisle’s picture

gisle’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.