简体   繁体   English

N2中的角色管理

[英]Role Management in N2

N2 CMS has the following roles by default: Everyone, Members, Writers, Editors and Administrators. N2 CMS默认具有以下角色:每个人,成员,作家,编辑和管理员。 It allows you to assign users to these roles and offers role assignments for each editable page. 它允许您将用户分配给这些角色,并为每个可编辑页面提供角色分配。

Is there a way to easily create additional roles for specifying which groups of users can edit certain pages? 有没有一种方法可以轻松地创建其他角色,以指定哪些用户组可以编辑某些页面? Maybe a configuration option in the n2 section of the web.config? 也许是web.config的n2部分中的配置选项?

Click on settings, set "show non pages in navigation" to checked. 单击设置,将“在导航中显示非页面”设置为选中。 Open Users node for editing. 打开“用户”节点以进行编辑。 You will see one row per line. 您将看到每行一行。 Add your role on a new line. 在新行中添加您的角色。

Next, change web config to add your new role as editors 接下来,更改Web配置以将您的新角色添加为编辑者

<editors dynamic="true" roles="Editors,NewRole" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM