src/pyams_portal/__init__.py
changeset 38 e994aa2ae16e
parent 26 5bca394e019e
child 141 2ac6f3379d14
--- 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'}})