Skip to content

Commit 3428cec

Browse files
authored
Use consistent spelling for "authorization" (#8929)
Apart from a few exceptions, django-rest-framework uses the American English spelling "authorization"/"authorized". $ git grep -oi authorised | wc -l 2 $ git grep -oi authorized | wc -l 30 Replace the few occurences of the British English spelling with the American English one.
1 parent b60fbf3 commit 3428cec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api-guide/permissions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ This permission is suitable if you want your API to only be accessible to a subs
165165

166166
## IsAuthenticatedOrReadOnly
167167

168-
The `IsAuthenticatedOrReadOnly` will allow authenticated users to perform any request. Requests for unauthorised users will only be permitted if the request method is one of the "safe" methods; `GET`, `HEAD` or `OPTIONS`.
168+
The `IsAuthenticatedOrReadOnly` will allow authenticated users to perform any request. Requests for unauthorized users will only be permitted if the request method is one of the "safe" methods; `GET`, `HEAD` or `OPTIONS`.
169169

170170
This permission is suitable if you want to your API to allow read permissions to anonymous users, and only allow write permissions to authenticated users.
171171

rest_framework/templates/rest_framework/docs/error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h2>Additional Information</h2>
3030

3131
<p>Your response status code is: <code>{{ response.status_code }}</code></p>
3232

33-
<h3>401 Unauthorised.</h3>
33+
<h3>401 Unauthorized.</h3>
3434
<ul>
3535
<li>Do you have SessionAuthentication enabled?</li>
3636
<li>Are you logged in?</li>

0 commit comments

Comments
 (0)