source/Core/GenericImport/ImportObject/ImportObject.php
protected function isAllowedToEdit($shopId)
    {
        $user = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
        $user->loadAdminUser();

        if ($user->oxuser__oxrights->value == "malladmin" || $user->oxuser__oxrights->value == (int) $shopId) {
            return true;
        }

        return false;
    }
protected function isAllowedToEdit($shopId)
    {
        $user = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
        $user->loadAdminUser();

        if ($user->oxuser__oxrights->value == "malladmin" || $user->oxuser__oxrights->value == (int) $shopId) {
            return true;
        }

        return false;
    }
protected function isAllowedToEdit ( $ shopId ) { $ user = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ User :: class ) ; $ user -> loadAdminUser ( ) ; if ( $ user -> oxuser__oxrights -> value == "malladmin" || $ user -> oxuser__oxrights -> value == ( int ) $ shopId ) { return true ; } return false ; }
Checks if user is allowed to edit in this shop.

@param int $shopId shop id

@return bool
Checks if user is allowed to edit in this shop .