Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Issue #2962423 by weseze: Why is it necessary to flush the cache after amending the permission of a node for changes in the access restriction(s) to take effect?
Re-factor SQL queries to use class abstraction as opposed to procedural calls.