refactored admin controller, using chains, to avoid using requireadmin on each endpoint

This commit is contained in:
Rob Vermaas
2010-04-27 14:11:08 +00:00
parent 7a79d17a36
commit 368c4cd813
2 changed files with 12 additions and 15 deletions

View File

@ -36,7 +36,7 @@
[% IF c.user_exists %]
[% IF c.check_user_roles('admin') %]
[% INCLUDE makeLink
uri = c.uri_for(c.controller('Admin').action_for('admin'))
uri = c.uri_for(c.controller('Admin').action_for('index'))
title = "Admin" %]
[% END %]
[% INCLUDE makeLink