fond-of-oryx/erp-order-permission

ERP Order Permission module

2.0.0 2023-01-20 14:07 UTC

This package is auto-updated.

Last update: 2023-01-24 13:57:01 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!