Scalr\Model\Entity\Account\User::canEditUser PHP Method

canEditUser() public method

Checks whether the user is allowed to edit specified user
public canEditUser ( User $user ) : boolean
$user User The user to edit
return boolean Returns true if the user is allowed to edit specified user
    public function canEditUser(User $user)
    {
        return !$this->isTeamUser() && $user->accountId == $this->accountId && ($this->id == $user->id || $this->isAccountOwner() || $this->isAccountSuperAdmin() && !$user->isAccountOwner() || $this->isAccountAdmin() && !$user->isAccountOwner() && !$user->isAccountSuperAdmin());
    }