Ignore:
Timestamp:
11/13/10 19:33:41 (14 years ago)
Author:
nanardon
Message:
  • add admin tools
Location:
web
Files:
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • web/trunk/lib/Sophie/Controller/Root.pm

    r3 r4  
    2929        $c->stash->{current_view} = 'Json'; 
    3030    } 
     31 
     32    if ($c->action =~ m/^admin\//) { 
     33        if (!$c->user_exists) { 
     34            $c->res->redirect($c->uri_for('/login')); 
     35        } 
     36    } 
    3137} 
    3238 
     
    4147 
    4248    # Hello World 
    43     $c->forward($c->view('Global')); 
    44     #$c->response->body( $c->welcome_message ); 
    4549} 
    4650 
Note: See TracChangeset for help on using the changeset viewer.