mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 11:04:02 +03:00
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.
This commit is contained in:
parent
b60fbf3374
commit
3428cec194
|
@ -165,7 +165,7 @@ This permission is suitable if you want your API to only be accessible to a subs
|
||||||
|
|
||||||
## IsAuthenticatedOrReadOnly
|
## IsAuthenticatedOrReadOnly
|
||||||
|
|
||||||
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`.
|
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`.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ being applied unexpectedly?</p>
|
||||||
|
|
||||||
<p>Your response status code is: <code>{{ response.status_code }}</code></p>
|
<p>Your response status code is: <code>{{ response.status_code }}</code></p>
|
||||||
|
|
||||||
<h3>401 Unauthorised.</h3>
|
<h3>401 Unauthorized.</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Do you have SessionAuthentication enabled?</li>
|
<li>Do you have SessionAuthentication enabled?</li>
|
||||||
<li>Are you logged in?</li>
|
<li>Are you logged in?</li>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user