divante-ltd/pimcore-object-fields-permissions

Allow to configurate object field locked/mandatory based on user role and object fields values.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 7

Forks: 0

Open Issues: 0

Language:JavaScript

Type:pimcore-bundle

dev-master 2020-03-09 13:00 UTC

This package is auto-updated.

Last update: 2024-11-09 23:43:29 UTC


README

Continuous Integration

Code Coverage Type Coverage

Latest Stable VersionTotal Downloads Total Downloads

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.