Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 7833ee1b7623a03c769f70297852063ecc9d1ed1
parent c776c59e6a7018f140c19b67af8f03c7f8a5fee2
Author: Yazid <yazid@localhost.localdomain>
Date:   Tue, 26 Mar 2019 19:56:21 +0100

Correction to requests guide: 'route' -> 'guard'.

Diffstat:
Msite/guide/4-requests.md | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/site/guide/4-requests.md b/site/guide/4-requests.md @@ -476,7 +476,7 @@ fn admin_panel_redirect() -> Redirect { The three routes above encode authentication _and_ authorization. The `admin_panel` route only succeeds if an administrator is logged in. Only then is -the admin panel displayed. If the user is not an admin, the `AdminUser` route +the admin panel displayed. If the user is not an admin, the `AdminUser` guard will forward. Since the `admin_panel_user` route is ranked next highest, it is attempted next. This route succeeds if there is _any_ user signed in, and an authorization failure message is displayed. Finally, if a user isn't signed in,