/** * {@inheritdoc} */ protected function processPrivileges(AbstractRole $role) { $this->startFrontendProviderEmulation(); parent::processPrivileges($role); $this->stopFrontendProviderEmulation(); }
/** * {@inheritdoc} */ protected function processPrivileges(AbstractRole $role) { // product view always must be set $this->aclManager->setPermission($this->aclManager->getSid($role), $this->aclManager->getOid('entity:OroB2B\\Bundle\\ProductBundle\\Entity\\Product'), EntityMaskBuilder::MASK_VIEW_SYSTEM); parent::processPrivileges($role); }