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=78cb1163ea11963692fde6558b58655348f46b85;hp=456c5e57a2d19ff61f3950003f2925dc2feec20a;hb=aa7ff3257b8cc635010cfa8caee47a45efcab1f6;hpb=a608d8ce868536757adabcd074dc4a458339299a diff --git a/lib/Catalyst/Manual/Tutorial/06_Authorization.pod b/lib/Catalyst/Manual/Tutorial/06_Authorization.pod index 456c5e5..78cb116 100644 --- a/lib/Catalyst/Manual/Tutorial/06_Authorization.pod +++ b/lib/Catalyst/Manual/Tutorial/06_Authorization.pod @@ -78,21 +78,21 @@ Catalyst. Edit C and add C to the list: - # Load plugins - use Catalyst qw/ - -Debug - ConfigLoader - Static::Simple - - StackTrace - - Authentication - Authorization::Roles - - Session - Session::Store::FastMmap - Session::State::Cookie - /; + # Load plugins + use Catalyst qw/ + -Debug + ConfigLoader + Static::Simple + + StackTrace + + Authentication + Authorization::Roles + + Session + Session::Store::FastMmap + Session::State::Cookie + /; Once again, include this additional plugin as a new dependency in the Makefile.PL file like this: @@ -174,7 +174,7 @@ updating C to match the following code: # Assign the Book object to the stash and set template $c->stash(book => $book, - template => 'books/create_done.tt2'); + template => 'books/create_done.tt2'); } else { # Provide very simple feedback to the user. $c->response->body('Unauthorized!'); @@ -255,7 +255,7 @@ this method to our Result Class. Open C and add the following method below the "C" line: - =head 2 has_role + =head2 has_role Check if a user has the specified role