divante-ltd/pimcore-object-fields-permissions
not-reviewed
No Category
Detailsdivante-ltd/pimcore-object-fields-permissions
No Category
Project Summary
Allow to configurate object field locked/mandatory based on user role and object fields values.
Readme
pimcore-object-fields-permissions
Install
composer require divante-ltd/pimcore-object-fields-permissions
Enable the Bundle:
bin/console pimcore:bundle:enable ObjectFieldsPermissionsBundle
Usage
object_fields_permissions:
objects:
Product:
-
roles: ['ROLE_EDITOR', 'ROLE_TRANSLATOR']
conditions:
-
status: 'edit'
properties:
-
price: ['locked']
description: ['mandatory']
In above example for user with role EDITOR
or TRANSLATOR
when object with class Product
will have value edit
for field status
field price
will be locked and description
will be mandatory
Contributing
Please have a look at CONTRIBUTING.md
.
Code of Conduct
Please have a look at CODE_OF_CONDUCT.md
.
License
This package is licensed using the GNU General Public License v3.0.
Please have a look at LICENSE.md
.