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:
Christian Franke 2023-04-04 09:38:23 +02:00 committed by GitHub
parent b60fbf3374
commit 3428cec194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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>