diff --git a/libraries/joomla/user/user.php b/libraries/joomla/user/user.php index 2d391f66089d6..a6b2338e066fc 100644 --- a/libraries/joomla/user/user.php +++ b/libraries/joomla/user/user.php @@ -478,6 +478,21 @@ public function getAuthorisedGroups() return $this->_authGroups; } + /** + * Clears the access rights cache of this user + * + * @return void + * + * @since 3.4.0 + */ + public function clearAccessRights() + { + $this->_authLevels = null; + $this->_authGroups = null; + $this->isRoot = null; + JAccess::clearStatics(); + } + /** * Pass through method to the table for setting the last visit date *