fond-of-oryx/erp-order-permission

ERP Order Permission module

1.2.0 2021-11-29 10:39 UTC

This package is auto-updated.

Last update: 2021-11-29 13:31:53 UTC


README

license

Installation

composer require fond-of-oryx/erp-order-permission

Configuration

Register SeeErpOrdersPermissionPlugin in PermissionDependencyProvider

<?php

namespace Pyz\Client\Permission;

use FondOfOryx\Client\ErpOrderPermission\Plugin\Permission\SeeErpOrdersPermissionPlugin;

class PermissionDependencyProvider extends SprykerPermissionDependencyProvider
{
   ...
   /**
     * @return \Spryker\Shared\PermissionExtension\Dependency\Plugin\PermissionPluginInterface[]
     */
    protected function getPermissionPlugins(): array
    {
        return [
            ...
            new SeeErpOrdersPermissionPlugin(),
        ];
    }
}
...

Append permission in ZED Backend!