File Coverage

blib/lib/CGI/Application/Plugin/Authorization/Driver/Dummy.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 15 15 100.0


line stmt bran cond sub pod time code
1             package CGI::Application::Plugin::Authorization::Driver::Dummy;
2              
3 3     3   3365 use strict;
  3         5  
  3         126  
4 3     3   17 use warnings;
  3         6  
  3         110  
5              
6 3     3   15 use base qw(CGI::Application::Plugin::Authorization::Driver);
  3         5  
  3         1616  
7              
8              
9             =head1 NAME
10              
11             CGI::Application::Plugin::Authorization::Driver::Dummy - Dummy Authorization driver
12              
13              
14             =head1 SYNOPSIS
15              
16             use base qw(CGI::Application);
17             use CGI::Application::Plugin::Authorization;
18              
19             __PACKAGE__->authz->config(
20             DRIVER => 'Dummy',
21             );
22              
23              
24             =head1 METHODS
25              
26             =head2 authorize_user
27              
28             This method authorizes always returns true, so every user will be authorized
29             to do every task. It is really only useful for testing purposes, and should not
30             be used in production.
31              
32             =cut
33              
34 1     1 1 9 sub authorize_user { 1; }
35              
36              
37             =head1 SEE ALSO
38              
39             L, L, perl(1)
40              
41              
42             =head1 LICENCE AND COPYRIGHT
43              
44             Copyright (c) 2005, SiteSuite. All rights reserved.
45              
46             This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
47              
48              
49             =head1 DISCLAIMER OF WARRANTY
50              
51             BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
52              
53             IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
54              
55             =cut
56              
57             1;