mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
updated permission docs for IsSuperUser
This commit is contained in:
parent
7f2b8815b2
commit
392f5acc62
|
@ -161,6 +161,12 @@ The `IsAdminUser` permission class will deny permission to any user, unless `use
|
||||||
|
|
||||||
This permission is suitable if you want your API to only be accessible to a subset of trusted administrators.
|
This permission is suitable if you want your API to only be accessible to a subset of trusted administrators.
|
||||||
|
|
||||||
|
## IsSuperUser
|
||||||
|
|
||||||
|
The `IsSuperUser` permission class will deny permission to any user, unless `user.is_superuser` is `True` in which case permission will be allowed.
|
||||||
|
|
||||||
|
This permission is suitable if you want your API to only be accessible to only a super user.
|
||||||
|
|
||||||
## 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 unauthorised users will only be permitted if the request method is one of the "safe" methods; `GET`, `HEAD` or `OPTIONS`.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user