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