--- trunk/lib/SQLSession/Dispatcher.pm 2007/01/25 12:33:38 57 +++ trunk/lib/SQLSession/Dispatcher.pm 2007/01/25 13:08:06 58 @@ -9,7 +9,7 @@ before '*' => run { my $top = Jifty->web->navigation; - my $edit = Jifty->config->app('edit'); + my $edit = Jifty->web->current_user->role('edit'); $top->child( 'New' => url => '/new' ) if ($edit); my $l = $top->child( 'List' => url => '/list' ); @@ -31,6 +31,11 @@ $top->child( 'Signup' => url => '/signup' ); } + if ( Jifty->web->current_user->role( 'admin' ) ) { + $top->child( 'Docs' => url => '/__jifty/online_docs/' ); + $top->child( 'Administration' => url => '/__jifty/admin/' ); + } + };