-
-
13 Mar 2011 21:28:32 UTC
- Distribution: Dancer-Plugin-Auth-RBAC
- Module version: 1.110720
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (0)
- Testers (2028 / 1 / 0)
- Kwalitee
Bus factor: 1- 73.42% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (13.38KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Dancer::Plugin::Auth::RBAC::Permissions - Dancer::Plugin::Auth::RBAC Permissions base class and guide!
VERSION
version 1.110720
SYNOPSIS
package Dancer::Plugin::Auth::RBAC::Permissions::MyPermissionsClass; use base 'Dancer::Plugin::Auth::RBAC::Permissions'; # every permissions class must have subject_asa and subject_can routines # the following defines a custom routine for checking the user's role sub subject_asa { my ($self, $options, @arguments) = @_; my $role = shift @arguments; ... } 1;
DESCRIPTION
The Dancer::Plugin::Auth::RBAC::Permissions class should be used as a base class in your custom role-based acess control/permissions classes. When used as a base class, this class provides instantiation and simple error handling for your classes.
AUTHOR
Al Newkirk <awncorp@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by awncorp.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Dancer::Plugin::Auth::RBAC, copy and paste the appropriate command in to your terminal.
cpanm Dancer::Plugin::Auth::RBAC
perl -MCPAN -e shell install Dancer::Plugin::Auth::RBAC
For more information on module installation, please visit the detailed CPAN module installation guide.