MooseX::Meta::Method::Authorized(3) | User Contributed Perl Documentation | MooseX::Meta::Method::Authorized(3) |
MooseX::Meta::Method::Authorized - Authorization in method calls
This trait provides support for verifying authorization before calling a method.
$verifier->authorized_do($meth_obj, $code, @_)
It is expected that this method should die if the authorization is not stablished.
The default value for this attribute is MooseX::Meta::Method::Authorized::CheckRoles, which will get the current user by calling the "user" method and list the roles given to that user by invoking the "roles" method.
MooseX::AuthorizedMethods, Class::MOP::Method
Daniel Ruoso <daniel@ruoso.com>
With help from rafl and doy from #moose.
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.
2010-11-24 | perl v5.34.0 |