X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F06_Authorization.pod;fp=lib%2FCatalyst%2FManual%2FTutorial%2F06_Authorization.pod;h=bb78efad7646a1c38d575383e9749ff93e75a9bc;hp=10debada32ea8dae214358034f11551aa54ac7db;hb=20e49994744167ded52876ee1a7d066e1a0c6c39;hpb=0d360ef7b7580ea119e3e2d05dd78962b911df23 diff --git a/lib/Catalyst/Manual/Tutorial/06_Authorization.pod b/lib/Catalyst/Manual/Tutorial/06_Authorization.pod index 10debad..bb78efa 100644 --- a/lib/Catalyst/Manual/Tutorial/06_Authorization.pod +++ b/lib/Catalyst/Manual/Tutorial/06_Authorization.pod @@ -78,6 +78,7 @@ Catalyst. =head2 Update Plugins to Include Support for Authorization Edit C and add C to the list: +***TODO: remove stacktrace? # Load plugins use Catalyst qw/ @@ -273,11 +274,18 @@ the "C" line: return any(map { $_->role } $self->roles) eq $role; } -Let's also add Perl6::Junction to the requirements listed in +Let's also add C to the requirements listed in Makefile.PL: requires 'Perl6::Junction'; +B Feel free to use C in lieu of C if +you prefer. Also, please don't let the use of the C +module above lead you to believe that Catalyst is somehow dependent on +Perl 6... we are simply using that module for its +L +C function. + Now we need to add some enforcement inside our controller. Open C and update the C method to match the following code: