定制 thoughtco/statamic-restrict-fields 二次开发

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

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

thoughtco/statamic-restrict-fields

最新稳定版本:1.1.0

Composer 安装命令:

composer require thoughtco/statamic-restrict-fields

包简介

README 文档

README

Restrict Fields is a Statamic addon that allows you to restrict fields in the control panel to certain users, groups or roles.

How to Install

Run the following command from your project root:

composer require thoughtco/statamic-restrict-fields

How to Use

Once installed, 3 new custom condition methods become available to use:

restrictUsers

Use with a value in the format: restrictUsers:user_id_1,user_id_2

restrictGroups

Use with a value in the format: restrictGroups:group_slug_1,group_slug_2

restrictRoles

Use with a value in the format: restrictRoles:role_slug_1,role_slug_2

Including superadmins

You may pass super to the restrictGroups and restrictRoles condition methods in order to include superadmins.

Example: restrictGroups:super,group_slug_1,group_slug_2

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-10-13