guests shouldn't see listAdmin template #108

Open
php-workx opened this Issue Sep 9, 2011 · 1 comment

Projects

None yet

2 participants

@php-workx
Contributor

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

@arosboro
Contributor

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment