如何创建一个唯一目的是管理用户的 Plone 4 组?
我正在尝试建立一个 Plone 组(Plone 4.0.7
),该组将纯粹负责创建和修改用户。我不希望他们拥有该网站的完全管理员访问权限,仅具有用户和组
功能。
我在 my.package/profiles/default/rolemap.xml
中创建了一个角色,如下所示:
<role name="Maintain Users" />
然后添加了一个权限:
<permission name="Manage users" acquire="false">
<role name="Maintain Users" />
<role name="Manager" />
</permission>
在 my.package/setuphandlers.py
中,我添加了一个使用该角色的新组:
groups = {
....
'Service Desk': ['Maintain Users', 'Member'],
....
}
我能够将用户添加到我新创建的 Service Desk
组中,因此我相信它可以工作,但我没有得到的是以下功能:该组中的用户能够维护用户。
我天真地期望他们登录后菜单上会有一个选项(类似于“站点设置”),但事实并非如此。
我需要采取哪些额外步骤才能实现这一目标?
I'm trying to set up a Plone group (Plone 4.0.7
) that will be responsible purely for creating and amending users. I don't want them to have full admin access to the site, purely to the Users and Groups
functionality.
I have created a role in my.package/profiles/default/rolemap.xml
like so:
<role name="Maintain Users" />
and then added a permission thus:
<permission name="Manage users" acquire="false">
<role name="Maintain Users" />
<role name="Manager" />
</permission>
In my.package/setuphandlers.py
I have added a new group that uses the role:
groups = {
....
'Service Desk': ['Maintain Users', 'Member'],
....
}
I am able to add users to my newly created Service Desk
group, so I'm confident that works, but what I'm not getting is the ability for users in that group to be able to Maintain Users.
I naively expected there to be an option on the menu (similar to 'Site Setup') once they had logged in, this is not the case.
What additional steps do I need to take to be able to achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须向您的自定义角色授予这 2 个权限:
Plone 站点设置:概述
(用于菜单条目和对控制面板的访问)Plone 站点设置:用户和组
(管理用户和组的权限)You have to grant these 2 permissions to your custom role:
Plone Site Setup: Overview
(for the menu entry and the access to the control panel)Plone Site Setup: Users and Groups
(for the permission to manage users and groups)