/[A3C]/lib/A3C/Dispatcher.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/A3C/Dispatcher.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 65 by dpavlin, Wed Apr 9 22:53:31 2008 UTC revision 71 by dpavlin, Thu Apr 10 21:33:37 2008 UTC
# Line 8  use Jifty::Dispatcher -base; Line 8  use Jifty::Dispatcher -base;
8  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
9    
10  before '*' => run {  before '*' => run {
11          Jifty->web->tangent(url => '/ldaplogin') if (! Jifty->web->current_user->id);                                                                      warn "## ", Jifty->web->request->path;
12            Jifty->web->tangent(url => '/ldaplogin')
13                    if ( ! Jifty->web->current_user->id && Jifty->web->request->path !~ m{^/(?:ldaplogin|__jifty)} );
14    
15          my $top = Jifty->web->navigation;          my $top = Jifty->web->navigation;
16          my $user = Jifty->web->current_user->user_object;          my $user = Jifty->web->current_user->user_object;
17    
18  #       Jifty->log->debug("current_user = ", dump( $user ));  #       Jifty->log->debug("current_user = ", dump( $user ));
19    
20          $top->child( _('Find People') => url => '/search-users' );          $top->child( _('People') => url => 'people' );
21          $top->child( _('Sync Organization') => url => '/sync' );  
22            $top->child( _('Sync') => url => 'sync' );
23            $top->child( _('LDAP') => url => 'ldap' );
24    
25  #       $top->child( 'Prefs' => url => '/prefs' ) if Jifty->web->current_user->id;  #       $top->child( 'Prefs' => url => '/prefs' ) if Jifty->web->current_user->id;
26    
27  };  };

Legend:
Removed from v.65  
changed lines
  Added in v.71

  ViewVC Help
Powered by ViewVC 1.1.26