divante-ltd/pimcore-object-fields-permissions

允许根据用户角色和对象字段值配置对象字段的锁定/必填。

安装: 3

依赖: 0

建议者: 0

安全: 0

星标: 1

关注者: 7

分支: 0

开放问题: 0

语言:JavaScript

类型:pimcore-bundle

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

This package is auto-updated.

Last update: 2024-09-09 23:18:39 UTC


README

Continuous Integration

Code Coverage Type Coverage

Latest Stable VersionTotal Downloads Total Downloads

安装

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']

在上面的示例中,对于具有EDITORTRANSLATOR角色的用户,当具有Product类别的对象在status字段中具有值edit时,price字段将被锁定,而description字段将是必填的。

贡献

请参阅CONTRIBUTING.md

行为准则

请参阅CODE_OF_CONDUCT.md

许可证

本软件包使用GNU通用公共许可证v3.0许可。

请参阅LICENSE.md