Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

moosex::meta::method::authorized::checkroles(3) [osx man page]

MooseX::Meta::Method::Authorized::CheckRoles(3) 	User Contributed Perl Documentation	   MooseX::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.16.2 2010-11-24 MooseX::Meta::Method::Authorized::CheckRoles(3)

Check Out this Related Man Page

MooseX::Meta::Method::Authorized::CheckRoles(3) 	User Contributed Perl Documentation	   MooseX::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.18.2 2010-11-24 MooseX::Meta::Method::Authorized::CheckRoles(3)
Man Page

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

diffrence between method call and function call in perl

(4 Replies)
Discussion started by: Zaxon
4 Replies

2. UNIX for Dummies Questions & Answers

Access Denied

I login to a server and get a Access Denied Prompt but I clearly lets me into the prompt with Putty. I do a sudo -s enter my password tells me Access Denied but I am clearly now Root Just wondering why this is so? what is misconfigured? I mean its not prohibiting me from anything, this is more... (3 Replies)
Discussion started by: gkelly1117
3 Replies