composer require divante-ltd/pimcore-object-fields-permissions
Enable the Bundle:
bin/console pimcore:bundle:enable ObjectFieldsPermissionsBundle
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
Please have a look at CONTRIBUTING.md
.
Please have a look at CODE_OF_CONDUCT.md
.
This package is licensed using the GNU General Public License v3.0.
Please have a look at LICENSE.md
.