定制 punktde/inspectorvisibility 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

punktde/inspectorvisibility

Composer 安装命令:

composer require punktde/inspectorvisibility

包简介

Neos package to configure the visibility of inspector elements using privileges

README 文档

README

Latest Stable Version Total Downloads

This package allows you to configure the visibility of inspector elements, like properties, groups and tabs using policies. With that you can configure the visibility of these elements according to the users roles.

CAUTION: Although this is done with policies, this is not a security feature!

If you prevent a user from editing nodes, you aditionally need to define policies with an EditNodePropertyPrivilege for example.

Installation

The installation is done with composer:

composer require punktde/inspectorvisibility

Usage

The matcher can be defined using standard eel. The following properties to match for are available:

  • nodeTypeName
  • tabName
  • groupName
  • propertyName

If no policy is matching for a role, the configured visibility is used. Same, if a permission is set to ABSTAIN.

Examples

Example Policy.yaml

privilegeTargets:

  'PunktDe\InspectorVisibility\Security\Authorization\Privilege\InspectorVisibilityPrivilege':
    'PunktDe.InspectorVisibility:AdminFields':
      matcher: "${tabName == 'meta' && groupName == 'nodeInfo'}"

roles:
  'Neos.Neos:Editor':
    privileges:
      -
        privilegeTarget: 'PunktDe.InspectorVisibility:AdminFields'
        permission: DENY

Matcher Examples

  • Adress all uriPathSegment properties: matcher: "${propertyName == 'uriPathSegment'}
  • Adress all meta tabs of all nodeTypes "${tabName == 'meta'}"
  • Address all title fields of a specific type matcher: "${nodeTypeName == 'Neos.Demo:Registration' && propertyName == 'title'}"

统计信息

  • 总下载量: 12.08k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-01-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固