From 700470dd29caf001c48f46d07a97bd9cc355141b Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Fri, 11 Jul 2025 10:28:24 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B08219=20-=20Allow=20to=20reset=20user=20c?= =?UTF-8?q?ache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/userrights.class.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/userrights.class.inc.php b/core/userrights.class.inc.php index 23151b2080..aeea4fa20c 100644 --- a/core/userrights.class.inc.php +++ b/core/userrights.class.inc.php @@ -1962,6 +1962,15 @@ class UserRights return self::$m_aCacheUsers[$sAuthentication][$sLogin]; } + /** + * Reset the cache of users + * @return void + */ + public static function ResetCacheUsers() + { + self::$m_aCacheUsers = [ 'internal' => [], 'external' => [] ]; + } + /** * @param string$sClass * @param array $aAllowedOrgs