/[transports]/trunk/lib/Transports/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 /trunk/lib/Transports/Dispatcher.pm

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

revision 69 by dpavlin, Sun Jun 11 14:23:37 2006 UTC revision 72 by dpavlin, Mon Jun 12 03:44:50 2006 UTC
# Line 40  before 'logout', run { Line 40  before 'logout', run {
40  # able to edit files in place.  These should become a plugin of some  # able to edit files in place.  These should become a plugin of some
41  # sort, when we have that infrastructure.  # sort, when we have that infrastructure.
42    
43  before '*', run {  before qr'^(.*)$', run {
44      Jifty->api->allow(qr/^Jifty::Action::Devel/)          my $url = $1 || '/';
45    
46            Jifty->api->allow(qr/^Jifty::Action::Devel/)
47        if Jifty->config->framework('DevelMode');        if Jifty->config->framework('DevelMode');
48    
49            return if ($url eq '/' || $url =~ m#^/login#);
50    
51            if (not Jifty->web->current_user->id) {
52                    redirect( '/login' . $url );
53            }
54  };  };
55    
56  on qr'^/__jifty/edit/(.*?)/(.*)$', run {  on qr'^/__jifty/edit/(.*?)/(.*)$', run {

Legend:
Removed from v.69  
changed lines
  Added in v.72

  ViewVC Help
Powered by ViewVC 1.1.26