From a2eb7a06d93b8f42d6080b6be6de1f0cf5f1775a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Van=20Der=20Biest?= Date: Thu, 10 Jan 2013 12:40:46 +0100 Subject: [PATCH] mapfishapp PRINT_LAYOUTS_ACL --- mapfishapp/app/js/GEOR_custom.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/mapfishapp/app/js/GEOR_custom.js b/mapfishapp/app/js/GEOR_custom.js index 5118bd8..d88ef2a 100644 --- a/mapfishapp/app/js/GEOR_custom.js +++ b/mapfishapp/app/js/GEOR_custom.js @@ -377,7 +377,21 @@ GEOR.custom = { * Defaults to [] */ //ROLES_FOR_PRINTER: [], - + + /** + * Constant: PRINT_LAYOUTS_ACL + * {Object} roles required for each print layout + * Empty array means "layout is available for everyone" + * + PRINT_LAYOUTS_ACL: { + // A4 allowed for everyone: + 'A4 paysage': [], + 'A4 portrait': [], + // A3 not allowed for unconnected users (guests): + 'A3 paysage': ['ROLE_SV_USER', 'ROLE_SV_REVIEWER', 'ROLE_SV_EDITOR', 'ROLE_SV_ADMIN'], + 'A3 portrait': ['ROLE_SV_USER', 'ROLE_SV_REVIEWER', 'ROLE_SV_EDITOR', 'ROLE_SV_ADMIN'] + },*/ + /** * Constant: HELP_URL * {String} URL of the help ressource.