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
Requires
- php: ^7.2
- pimcore/pimcore: ^6.0
- symfony/symfony: ^4.4
Requires (Dev)
- ergebnis/phpstan-rules: ~0.14.2
- friendsofphp/php-cs-fixer: ^2.15
- infection/infection: ~0.15.0
- jangregor/phpstan-prophecy: ~0.6.0
- phpstan/extension-installer: ^1.0.3
- phpstan/phpstan: ~0.12.7
- phpstan/phpstan-deprecation-rules: ~0.12.2
- phpstan/phpstan-phpunit: ~0.12.6
- phpstan/phpstan-strict-rules: ~0.12.2
- phpstan/phpstan-symfony: ~0.12.4
- phpunit/phpunit: ^8.5.2
- psalm/plugin-phpunit: ~0.8.1
- symfony/process: ^4.4
- vimeo/psalm: ^3.8.3
This package is auto-updated.
Last update: 2024-10-09 23:33:37 UTC
README
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
.