8000 Update permissions.md to fix garden path sentences (#8206) · encode/django-rest-framework@53a0585 · GitHub
[go: up one dir, main page]

Skip to content

Commit 53a0585

Browse files
authored
Update permissions.md to fix garden path sentences (#8206)
1 parent 6ea95b6 commit 53a0585

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api-guide/permissions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ A slightly less strict style of permission would be to allow full access to auth
2424
Permissions in REST framework are always defined as a list of permission classes.
2525

2626
Before running the main body of the view each permission in the list is checked.
27-
If any permission check fails an `exceptions.PermissionDenied` or `exceptions.NotAuthenticated` exception will be raised, and the main body of the view will not run.
27+
If any permission check fails, an `exceptions.PermissionDenied` or `exceptions.NotAuthenticated` exception will be raised, and the main body of the view will not run.
2828

29-
When the permissions checks fail either a "403 Forbidden" or a "401 Unauthorized" response will be returned, according to the following rules:
29+
When the permission checks fail, either a "403 Forbidden" or a "401 Unauthorized" response will be returned, according to the following rules:
3030

3131
* The request was successfully authenticated, but permission was denied. *— An HTTP 403 Forbidden response will be returned.*
3232
* The request was not successfully authenticated, and the highest priority authentication class *does not* use `WWW-Authenticate` headers. *— An HTTP 403 Forbidden response will be returned.*

0 commit comments

Comments
 (0)
0