Parent Directory | Revision Log
make current user superuser and create docs+admin navigation for it if (s)he has admin role. Interesting example of overriding Jifty templates
1 | dpavlin | 58 | <%init> |
2 | |||
3 | unless ( Jifty->web->current_user->role( 'admin' ) ) { | ||
4 | $m->redirect('/__jifty/error/permission_denied'); | ||
5 | $m->abort(); | ||
6 | } | ||
7 | $m->comp('_elements/nav'); | ||
8 | $m->call_next(); | ||
9 | </%init> |
ViewVC Help | |
Powered by ViewVC 1.1.26 |