Updated system manager permissions
authorThierry Florac <thierry.florac@onf.fr>
Thu, 13 Jul 2017 10:52:59 +0200
changeset 86 695fa57d4b72
parent 85 b43215d4c9b9
child 87 5c4c8b122f94
Updated system manager permissions
src/pyams_security/__init__.py
--- a/src/pyams_security/__init__.py	Wed Jul 12 12:36:42 2017 +0200
+++ b/src/pyams_security/__init__.py	Thu Jul 13 10:52:59 2017 +0200
@@ -25,7 +25,7 @@
 _ = TranslationStringFactory('pyams_security')
 
 from pyams_utils.interfaces import PUBLIC_PERMISSION, VIEW_PERMISSION, MANAGE_PERMISSION, VIEW_SYSTEM_PERMISSION, \
-    MANAGE_SYSTEM_PERMISSION, MANAGE_SECURITY_PERMISSION, MANAGE_ROLES_PERMISSION
+    MANAGE_SYSTEM_PERMISSION, MANAGE_SECURITY_PERMISSION, MANAGE_ROLES_PERMISSION, MANAGE_SKIN_PERMISSION
 
 
 def includeme(config):
@@ -57,6 +57,6 @@
     config.register_role({'id': 'system.Manager',
                           'title': "System manager (role)",
                           'permissions': {PUBLIC_PERMISSION, VIEW_PERMISSION, MANAGE_PERMISSION,
-                                          MANAGE_SYSTEM_PERMISSION, VIEW_SYSTEM_PERMISSION,
-                                          MANAGE_SECURITY_PERMISSION, MANAGE_ROLES_PERMISSION},
+                                          MANAGE_SYSTEM_PERMISSION, VIEW_SYSTEM_PERMISSION, MANAGE_SECURITY_PERMISSION,
+                                          MANAGE_SKIN_PERMISSION, MANAGE_ROLES_PERMISSION},
                           'managers': {'system:admin', 'role:system.Manager'}})