Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

guests shouldn't see listAdmin template #108

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

Comments

Projects
None yet
2 participants
Contributor

php-workx commented Sep 9, 2011

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

Contributor

arosboro commented Apr 14, 2013

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