Scalr\Model\Entity\Account\User::canRemoveUser PHP Méthode

canRemoveUser() public méthode

Checks whether the user is allowed to remove specified user
public canRemoveUser ( User $user ) : boolean
$user User The user to remove
Résultat boolean Returns true if the user is allowed to remove specified user
    public function canRemoveUser(User $user)
    {
        return !$this->isTeamUser() && $user->accountId == $this->accountId && !$user->isAccountOwner() && $this->getId() != $user->getId() && ($this->isAccountOwner() || $this->isAccountSuperAdmin() || !$user->isAccountSuperAdmin());
    }