/[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

Contents of /lib/A3C/Dispatcher.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 67 - (show annotations)
Thu Apr 10 00:08:37 2008 UTC (16 years ago) by dpavlin
File size: 658 byte(s)
require LDAP plugin which supports SSL and enable it
1 package A3C::Dispatcher;
2
3 use strict;
4 use warnings;
5
6 use Jifty::Dispatcher -base;
7
8 use Data::Dump qw/dump/;
9
10 before '*' => run {
11 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;
16 my $user = Jifty->web->current_user->user_object;
17
18 # Jifty->log->debug("current_user = ", dump( $user ));
19
20 $top->child( _('Find People') => url => '/search-users' );
21 $top->child( _('Sync Organization') => url => '/sync' );
22 # $top->child( 'Prefs' => url => '/prefs' ) if Jifty->web->current_user->id;
23
24 };
25
26 1;

  ViewVC Help
Powered by ViewVC 1.1.26