Marionette multi user/roles application
Posted
by
Fabrizio Fortino
on Stack Overflow
See other posts from Stack Overflow
or by Fabrizio Fortino
Published on 2012-10-03T17:21:14Z
Indexed on
2012/10/05
15:37 UTC
Read the original article
Hit count: 264
backbone.js
|backbone.marionette
I have to build a pretty complex application using Backbone Marionette. The user interface has to handle multiple users with different roles. For example the 'admin' user will see the complete menu whereas the 'guest' user will access a subset of the same menu. Moreover some views will be accessible to all the users but the functions inside them (add, edit, delete) need to be profiled on the different roles.
I am not sure about the right approach to use in order to solve this issue. I could have different templates for the different roles but in this case plenty of code will be duplicated inside them. Is there any best practice (or maybe some example) to sort my problem out using Marionette?
Thanks in advance, Fabrizio
© Stack Overflow or respective owner