source/Application/Controller/AccountController.php
public function isUserAllowedToDeleteOwnAccount()
    {
        $allowUsersToDeleteTheirAccount = Registry::getConfig()->getConfigParam('blAllowUsersToDeleteTheirAccount');

        $user = $this->getUser();

        return $allowUsersToDeleteTheirAccount && $user && !$user->isMallAdmin();
    }
public function isUserAllowedToDeleteOwnAccount()
    {
        $allowUsersToDeleteTheirAccount = Registry::getConfig()->getConfigParam('blAllowUsersToDeleteTheirAccount');

        $user = $this->getUser();

        return $allowUsersToDeleteTheirAccount && $user && !$user->isMallAdmin();
    }
public function isUserAllowedToDeleteOwnAccount ( ) { $ allowUsersToDeleteTheirAccount = Registry :: getConfig ( ) -> getConfigParam ( 'blAllowUsersToDeleteTheirAccount' ) ; $ user = $ this -> getUser ( ) ; return $ allowUsersToDeleteTheirAccount && $ user && ! $ user -> isMallAdmin ( ) ; }
Returns true if User is allowed to delete own account.

@return bool
Returns true if User is allowed to delete own account .