GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MOOSEX::META::METHOD::AUTHORIZED::CHECKROLES (3)

.ds Aq ’

NAME

MooseX::Meta::Method::Authorized::CheckRoles - Check roles of the user

CONTENTS

DESCRIPTION

This verifier module will check if the user has any of the roles defined in the requires attribute of the method. To get the user this module will call user on the object which is the invocant for this method, to get the roles it will call roles on the user object.

METHODS

authorized_do($method, $code, @_) This is the method that does the actual verification. It only invokes the coderef after checking if the user has any of the required roles. It will die otherwise with a string like:



  Access Denied. User "johndoe" does not have any of the required
  roles ("foo") required to invoke method "bla" on class
  "My::ClassTest1". User roles are: ("foo","bar","baz")



It will only show the user id if the user implements the method id.

SEE ALSO

MooseX::AuthorizedMethods, Class::MOP::Method

AUTHORS

Daniel Ruoso <daniel@ruoso.com>

With help from rafl and doy from #moose.

COPYRIGHT AND LICENSE

Copyright 2010 by Daniel Ruoso et al

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MOOSEX::META::METHOD::AUTHORIZED::CHECKROLES (3) 2010-11-24

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.