phase7: add minimal read-only drf api with player search endpoints
This commit is contained in:
6
apps/api/permissions.py
Normal file
6
apps/api/permissions.py
Normal file
@ -0,0 +1,6 @@
|
||||
from rest_framework.permissions import BasePermission
|
||||
|
||||
|
||||
class ReadOnlyOrDeny(BasePermission):
|
||||
def has_permission(self, request, view):
|
||||
return request.method in ("GET", "HEAD", "OPTIONS")
|
||||
Reference in New Issue
Block a user