Skip to content

Commit

Permalink
mapfishapp PRINT_LAYOUTS_ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanderbiest committed Jan 10, 2013
1 parent fa9a320 commit a2eb7a0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion mapfishapp/app/js/GEOR_custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a2eb7a0

Please sign in to comment.