Changeset 18010
- Timestamp:
- 08/22/08 05:56:04 (5 months ago)
- Location:
- lang/perl/Nanto/trunk
- Files:
-
- 1 added
- 1 modified
-
lib/Nanto/Web/Plugin/Authorizer/MobileJPID.pm (modified) (3 diffs)
-
t/030_web_plugin/Authorizer-MobileJPID.t (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Nanto/trunk/lib/Nanto/Web/Plugin/Authorizer/MobileJPID.pm
r17981 r18010 12 12 ); 13 13 14 has 'unauthorized_message' => ( 15 is => 'ro', 16 isa => 'Str', 17 required => 1, 18 ); 19 14 20 hook 'authorize' => sub { 15 21 my ($self, $req) = @_; … … 20 26 HTTP::Engine::Response->new( 21 27 status => 403, 22 body => "you aren't have a permission",28 body => $self->unauthorized_message, 23 29 ); 24 30 } … … 26 32 27 33 sub _auth { 28 my $req = shift;34 my ($self, $req) = @_; 29 35 30 36 if ($req->mobile_attribute->can('user_id')) {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)