MooseX::Meta::Method::Authorized::CheckRoles5.12 man page on MacOSX

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
MacOSX logo
[printable version]

MooseX::Meta::Method::UseroContMooseX::Meta::Method::Authorized::CheckRoles(3)

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

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.

perl v5.12.5		       MooseX::Meta::Method::Authorized::CheckRoles(3)
[top]

List of man pages available for MacOSX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net