calipso
calipso copied to clipboard
guests shouldn't see listAdmin template
at the moment, also visitors get displayed the "listAdmin.html" template. instead the "list.html" template should be shown to visitors.
It looks like
module.router.addRoute('GET /asset/:f1?/:f2?/:f3?/:f4?/:f5?/:f6?/:f8?/:f9?/:f10?.:format?', listAssets, {
template:'listAdmin',
block:'content.list'
}, this.parallel());
and the other listAssets routes need to be changed to include {admin:true, permit:isAdmin}