Changeset 17981

Show
Ignore:
Timestamp:
08/21/08 23:07:09 (5 years ago)
Author:
tokuhirom
Message:

added authorizer.

Location:
lang/perl/Nanto/trunk/lib/Nanto/Web
Files:
3 added
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Nanto/trunk/lib/Nanto/Web/Handler.pm

    r17975 r17981  
    4040    local $REQUEST = $req; 
    4141 
     42    # authorize 
     43    my $auth_res = $self->run_hook_first( 'authorize', $req ); 
     44    return $auth_res if $auth_res; 
     45 
    4246    # request filter 
    4347    ($req, ) = $self->run_hook_filter( 'request', $req ); 
    4448 
     49    # handle 
    4550    my $res = $self->_handle( $loader, $req ); 
    4651