/** * Returns TRUE if this roles has any directly assigned parent roles. * * @return boolean */ public function hasParentRoles() { return $this->parentRoles->isEmpty() === FALSE; }
/** * Removes a role from this account * * @param \TYPO3\Flow\Security\Policy\Role $role * @return void */ public function removeRole(\TYPO3\Flow\Security\Policy\Role $role) { if ($this->hasRole($role)) { $this->roles->removeElement($role); } }