src/pyams_security/zmi/security.py
changeset 85 b43215d4c9b9
parent 54 59683c264d94
child 117 bab0e0098c8e
--- a/src/pyams_security/zmi/security.py	Wed Jul 12 12:35:07 2017 +0200
+++ b/src/pyams_security/zmi/security.py	Wed Jul 12 12:36:42 2017 +0200
@@ -21,7 +21,7 @@
 from pyams_security.zmi.interfaces import IObjectSecurityMenu
 from pyams_skin.interfaces import IInnerPage, IPageHeader
 from pyams_skin.layer import IPyAMSLayer
-from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION, MANAGE_SECURITY_PERMISSION, MANAGE_ROLES_PERMISSION
+from pyams_utils.interfaces import MANAGE_SECURITY_PERMISSION, MANAGE_ROLES_PERMISSION
 from pyams_zmi.interfaces.menu import ISiteManagementMenu
 from pyams_zmi.layer import IAdminLayer
 from z3c.form.interfaces import DISPLAY_MODE, INPUT_MODE
@@ -48,7 +48,7 @@
 #
 
 @viewlet_config(name='protected-object-roles.menu', context=IDefaultProtectionPolicy, layer=IAdminLayer,
-                manager=ISiteManagementMenu, permission=VIEW_SYSTEM_PERMISSION, weight=900)
+                manager=ISiteManagementMenu, permission=MANAGE_ROLES_PERMISSION, weight=900)
 @viewletmanager_config(name='protected-object-roles.menu', layer=IAdminLayer, context=IDefaultProtectionPolicy,
                        provides=IObjectSecurityMenu)
 @implementer(IObjectSecurityMenu)
@@ -62,7 +62,7 @@
 
 
 @pagelet_config(name='protected-object-roles.html', context=IDefaultProtectionPolicy, layer=IPyAMSLayer,
-                permission=VIEW_SYSTEM_PERMISSION)
+                permission=MANAGE_ROLES_PERMISSION)
 @implementer(IWidgetForm, IInnerPage)
 class ProtectedObjectRolesEditForm(AdminEditForm):
     """Protected object roles edit form"""