public function getRolesPermissions($force = false) { if (empty($this->cachedRolePermissions) or $force) { $this->cachedRolePermissions = $this->getFreshRolesPermissions(); } return $this->cachedRolePermissions; }