[Catalyst-commits] r14004 - in
Catalyst-Plugin-Authorization-Roles/trunk: .
lib/Catalyst/Plugin/Authorization
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Fri Apr 29 12:47:46 GMT 2011
Author: t0m
Date: 2011-04-29 12:47:46 +0000 (Fri, 29 Apr 2011)
New Revision: 14004
Modified:
Catalyst-Plugin-Authorization-Roles/trunk/Changes
Catalyst-Plugin-Authorization-Roles/trunk/lib/Catalyst/Plugin/Authorization/Roles.pm
Log:
Pod fixes
Modified: Catalyst-Plugin-Authorization-Roles/trunk/Changes
===================================================================
--- Catalyst-Plugin-Authorization-Roles/trunk/Changes 2011-04-29 12:40:47 UTC (rev 14003)
+++ Catalyst-Plugin-Authorization-Roles/trunk/Changes 2011-04-29 12:47:46 UTC (rev 14004)
@@ -1,5 +1,10 @@
Revision history for Perl extension Catalyst::Plugin::Authorization::Roles
+0.09
+ - Fix documentation to point at the tutorial, rather than
+ old advent article.
+ - Link to Catalyst::ActionRole::ACL
+ - Tidy up examples to show the new authentication system
- fix check_* to always return scalar values,
even in list context (RT#66812)
Modified: Catalyst-Plugin-Authorization-Roles/trunk/lib/Catalyst/Plugin/Authorization/Roles.pm
===================================================================
--- Catalyst-Plugin-Authorization-Roles/trunk/lib/Catalyst/Plugin/Authorization/Roles.pm 2011-04-29 12:40:47 UTC (rev 14003)
+++ Catalyst-Plugin-Authorization-Roles/trunk/lib/Catalyst/Plugin/Authorization/Roles.pm 2011-04-29 12:47:46 UTC (rev 14004)
@@ -136,7 +136,6 @@
use Catalyst qw/
Authentication
- Authentication::Store::ThatSupportsRoles
Authorization::Roles
/;
@@ -159,6 +158,9 @@
C<assert_any_user_role> it is enough that the user is a member in B<one>
role.
+There are alternative approaches to do this on a per action basis, see
+L<Catalyst::ActionRole::ACL>.
+
For example, if you have a CRUD application, for every mutating action you
probably want to check that the user is allowed to edit. To do this, create an
editor role, and add that role to every user who is allowed to edit.
@@ -178,7 +180,7 @@
When this is supported, the C<check_roles> method will be used to delegate the
role check to the user class. Classes like the one provided with
-L<Catalyst::Plugin::Authentication::Store::DBIC> optimize the check this way.
+L<iCatalyst::Authentication::Store::DBIx::Class> optimize the check this way.
=head1 METHODS
@@ -216,17 +218,23 @@
=head1 SEE ALSO
-L<Catalyst::Plugin::Authentication>
+=over
-L<< Catalyst::Manual::Tutorial::06_Authorization >>
+=item L<Catalyst::Plugin::Authentication>
+=item L<Catalyst::ActionRole::ACL>
+
+=item L<< Catalyst::Manual::Tutorial::06_Authorization >>
+
+=back
+
=head1 AUTHOR
Yuval Kogman E<lt>nothingmuch at woobling.orgE<gt>
=head1 COPYRIGHT & LICENSE
-Copyright (c) 2005-2009
+Copyright (c) 2005-2011
the Catalyst::Plugin::Authorization::Roles L</AUTHOR>
as listed above.
More information about the Catalyst-commits
mailing list