基于角色的访问控制 (RBAC)
¥Role-Based Access Control (RBAC)
Page summary:
Role-Based Access Control (RBAC) manages administrator roles and granular permissions in the admin panel. This documentation covers creating roles, assigning rights, and securing administrative workflows.
基于角色的访问控制 (RBAC) 功能允许管理管理员,他们是管理面板的用户。更具体地说,RBAC 管理管理员的账户和角色。
¥The Role-Based Access Control (RBAC) feature allows the management of the administrators, who are the users of the admin panel. More specifically, RBAC manages the administrators' accounts and roles.
配置
¥Configuration
配置功能的路径: 设置 > 管理面板 > 角色
¥Path to configure the feature: Settings > Administration panel > Roles
角色界面显示为 Strapi 应用的管理员创建的所有角色。
¥The Roles interface displays all created roles for the administrators of your Strapi application.
通过该界面,可以:
¥From this interface, it is possible to:
-
创建一个新的管理员角色(参见 创建新角色),
¥create a new administrator role (see Creating a new role),
-
删除管理员角色(参见 删除角色),
¥delete an administrator role (see Deleting a role),
-
或访问有关管理员角色的信息并对其进行编辑(参见 编辑角色)。
¥or access information regarding an administrator role, and edit it (see Editing a role).
默认情况下,为任何 Strapi 应用定义了 3 个管理员角色:
¥By default, 3 administrator roles are defined for any Strapi application:
-
作者:能够创建和管理自己的内容。
¥Author: to be able to create and manage their own content.
-
编辑:能够创建内容以及管理和发布任何内容。
¥Editor: to be able to create content, and manage and publish any content.
-
超级管理员:能够访问所有功能和设置。这是创建 Strapi 应用时默认归属于第一位管理员的角色。
¥Super Admin: to be able to access all features and settings. This is the role attributed by default to the first administrator at the creation of the Strapi application.
创建新角色
¥Creating a new role
在“管理”面板 >“角色”界面的右上角,会显示“添加新角色”按钮。单击“添加新角色”按钮,为 Strapi 应用的管理员创建新角色。
¥On the top right side of the Administration panel > Roles interface, an Add new role button is displayed. Click on that Add new role button to create a new role for administrators of your Strapi application.