source/Core/GenericImport/GenericImport.php
public function init()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $user = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
        $user->loadAdminUser();

        if (($user->oxuser__oxrights->value == 'malladmin' || $user->oxuser__oxrights->value == $config->getShopId())) {
            $this->isInitialized = true;
            $this->userId = $user->getId();
        } else {
            //user does not have sufficient rights for shop
            throw new Exception(self::ERROR_USER_NO_RIGHTS);
        }

        return $this->isInitialized;
    }
public function init()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $user = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
        $user->loadAdminUser();

        if (($user->oxuser__oxrights->value == 'malladmin' || $user->oxuser__oxrights->value == $config->getShopId())) {
            $this->isInitialized = true;
            $this->userId = $user->getId();
        } else {
            //user does not have sufficient rights for shop
            throw new Exception(self::ERROR_USER_NO_RIGHTS);
        }

        return $this->isInitialized;
    }
public function init ( ) { $ config = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ user = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ User :: class ) ; $ user -> loadAdminUser ( ) ; if ( ( $ user -> oxuser__oxrights -> value == 'malladmin' || $ user -> oxuser__oxrights -> value == $ config -> getShopId ( ) ) ) { $ this -> isInitialized = true ; $ this -> userId = $ user -> getId ( ) ; } else { //user does not have sufficient rights for shop throw new Exception ( self :: ERROR_USER_NO_RIGHTS ) ; } return $ this -> isInitialized ; }
Init parameters needed for import.
Creates Objects, checks Rights etc.

@throws Exception

@return boolean
Init parameters needed for import . Creates Objects checks Rights etc .