Download the PHP package arobases/sylius-rights-management-plugin without Composer
On this page you can find all versions of the php package arobases/sylius-rights-management-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arobases/sylius-rights-management-plugin
More information about arobases/sylius-rights-management-plugin
Files in arobases/sylius-rights-management-plugin
Package sylius-rights-management-plugin
Short Description This plugin allows you to manage the rights and roles of administrator users
License MIT
Informations about the package sylius-rights-management-plugin
Arobases Sylius Rights Management Plugin
This plugin allows you to manage the rights and roles of administrator users
Installation
Step 1: Download the plugin
- Install the plugin with
composer require arobases/sylius-rights-management-plugin
Step 2: Enable the plugin
- Register the bundle in your
bundles.php
:
Step 3: Import configuration
composer require arobases/sylius-rights-management-plugin
bundles.php
:Create file config/packages/arobases_sylius_rights_management_plugin.yaml
with this content
Step 4: Import routing
Create file config/routes/arobases_sylius_rights_management_plugin.yaml
with this content
Step 5: Use AdminUserTrait and implement AdminUserInterface
Step 6: Modify template SyliusAdminBundle/AdminUser/Form/_generalInfoExtended.html.twig
Step 7: Update your database:
Step 8: Install assets
Step 9: Define your default role (for example "administrator") and the username of the admin account which will have this role by default
if you don't change this lines, when you will create the rights with the command, you will no longer have access to anything in the back office because you will not have the rights.
Step 10: Use the command line to create roles, rights group and rights :
Screenshots
Index
Edit/create role
Error if the user does not have the rights
Usage
There is a pre-configured list of default rights :
However you can modify or add some rights or rights group in your file config/packages/arobases_sylius_rights_management_plugin.yaml :