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