Updated templates manager role registration
authorThierry Florac <thierry.florac@onf.fr>
Wed, 12 Jul 2017 12:21:40 +0200
changeset 38 e994aa2ae16e
parent 37 8bdda8a34fa2
child 39 f0ef959855e7
Updated templates manager role registration
src/pyams_portal/__init__.py
--- a/src/pyams_portal/__init__.py	Wed Jul 12 12:20:51 2017 +0200
+++ b/src/pyams_portal/__init__.py	Wed Jul 12 12:21:40 2017 +0200
@@ -43,6 +43,7 @@
                                 'title': _("Manage portal templates")})
 
     # register custom roles
-    config.register_role({'id': 'portal.TemplatesManager',
+    config.register_role({'id': 'pyams.TemplatesManager',
                           'title': _("Portal templates manager"),
-                          'permissions': {MANAGE_TEMPLATE_PERMISSION, VIEW_PERMISSION, VIEW_SYSTEM_PERMISSION}})
+                          'permissions': {MANAGE_TEMPLATE_PERMISSION, VIEW_PERMISSION, VIEW_SYSTEM_PERMISSION},
+                          'managers': {'system:admin', 'role:system.Manager', 'role:pyams.Webmaster'}})