fond-of-oryx/erp-order-permission

ERP Order Permission module

2.0.1 2023-10-02 07:55 UTC

This package is auto-updated.

Last update: 2024-12-01 00:10:57 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!