divante-ltd / pimcore-object-fields-permissions
允许根据用户角色和对象字段值配置对象字段的锁定/必填。
dev-master
2020-03-09 13:00 UTC
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-09-09 23:18:39 UTC
README
安装
composer require divante-ltd/pimcore-object-fields-permissions
启用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']
在上面的示例中,对于具有EDITOR
或TRANSLATOR
角色的用户,当具有Product
类别的对象在status
字段中具有值edit
时,price
字段将被锁定,而description
字段将是必填的。
贡献
请参阅CONTRIBUTING.md
。
行为准则
许可证
本软件包使用GNU通用公共许可证v3.0许可。
请参阅LICENSE.md
。