/[SQLSession]/trunk/share/web/templates/__jifty/online_docs/autohandler
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/share/web/templates/__jifty/online_docs/autohandler

Parent Directory Parent Directory | Revision Log Revision Log


Revision 58 - (show annotations)
Thu Jan 25 13:08:06 2007 UTC (17 years, 3 months ago) by dpavlin
File size: 192 byte(s)
make current user superuser and create docs+admin navigation for it if (s)he has
admin role. Interesting example of overriding Jifty templates
1 <%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>

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26