src/Lib/AuthActionsTrait.php
public function getUserRights() {
		if (!$this->_UserRights) {
			if (Configure::load('user_rights') === false) {
				trigger_error('UserRights: Could not load config/user_rights.php', E_USER_WARNING);
			}

			$rightsConfig = Configure::read('user_rights');
			if (!is_array($rightsConfig)) {
				$rightsConfig = [];
			}

			$this->_UserRights = new UserRights($rightsConfig);
		}
		return $this->_UserRights;
	}
public function getUserRights() {
		if (!$this->_UserRights) {
			if (Configure::load('user_rights') === false) {
				trigger_error('UserRights: Could not load config/user_rights.php', E_USER_WARNING);
			}

			$rightsConfig = Configure::read('user_rights');
			if (!is_array($rightsConfig)) {
				$rightsConfig = [];
			}

			$this->_UserRights = new UserRights($rightsConfig);
		}
		return $this->_UserRights;
	}
Instance getter for the UserRights instance

@return UserRights