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;h=9302abb291c481b0edaf121a82d2dab01061efcf;hp=3c3d4d9034f4c5b7471a37ec3f6e0eca7e2fa418;hb=78b0b5f65d042e2fc7100951359c325621746ec8;hpb=614b484ca966389470528db752d8e73a1ac6ebdc diff --git a/lib/Catalyst/Manual/Tutorial/06_Authorization.pod b/lib/Catalyst/Manual/Tutorial/06_Authorization.pod index 3c3d4d9..9302abb 100644 --- a/lib/Catalyst/Manual/Tutorial/06_Authorization.pod +++ b/lib/Catalyst/Manual/Tutorial/06_Authorization.pod @@ -94,19 +94,10 @@ Edit C and add C to the list: Session::State::Cookie /; -B As discussed in MoreCatalystBasics, different versions of -C have used a variety of methods to load the plugins. -You can put the plugins in the C statement if you -prefer. +Once again, include this additional plugin as a new dependency in +the Makefile.PL file like this: -Once again (remain sharp, by now you should be getting the hang of things) -include this additional plugin as a new dependency in the Makefile.PL file -like this: - - requires ( - ... - 'Catalyst::Plugin::Authorization::Roles' => '0', - ); + requires 'Catalyst::Plugin::Authorization::Roles'; =head2 Add Role-Specific Logic to the "Book List" Template @@ -138,7 +129,7 @@ lines to the bottom of the file:

This code displays a different combination of links depending on the -roles assigned to the user. +roles assigned to the user. =head2 Limit Books::add to 'admin' Users