Skip to content
Snippets Groups Projects
Commit 54a03ca9 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #329646 by Damien Tournoud: properly reset user_access().

parent 2bc3b99b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -528,7 +528,7 @@ function user_access($string, $account = NULL, $reset = FALSE) { ...@@ -528,7 +528,7 @@ function user_access($string, $account = NULL, $reset = FALSE) {
static $perm = array(); static $perm = array();
if ($reset) { if ($reset) {
unset($perm); $perm = array();
} }
if (is_null($account)) { if (is_null($account)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment