class documentation

class IsAuthenticatedOrReadOnly(BasePermission): (source)

View In Hierarchy

The request is authenticated as a user, or is a read-only request.

Method has_permission Return `True` if permission is granted, `False` otherwise.

Inherited from BasePermission:

Method has_object_permission Return `True` if permission is granted, `False` otherwise.
def has_permission(self, request, view): (source)

Return `True` if permission is granted, `False` otherwise.