calipso icon indicating copy to clipboard operation
calipso copied to clipboard

guests shouldn't see listAdmin template

Open php-workx opened this issue 13 years ago • 1 comments

at the moment, also visitors get displayed the "listAdmin.html" template. instead the "list.html" template should be shown to visitors.

php-workx avatar Sep 09 '11 07:09 php-workx

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}

arosboro avatar Apr 14 '13 18:04 arosboro