mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Fix API permission on dcc
This commit is contained in:
@@ -52,7 +52,7 @@ class Firewall(BasePermission):
|
|||||||
|
|
||||||
# accept IP configured is settings or localhost
|
# accept IP configured is settings or localhost
|
||||||
if ip in network or ip in IPv4Network("127.0.0.0/8"):
|
if ip in network or ip in IPv4Network("127.0.0.0/8"):
|
||||||
return request.method in SAFE_METHODS
|
return True
|
||||||
|
|
||||||
|
|
||||||
class Test(APIView):
|
class Test(APIView):
|
||||||
|
Reference in New Issue
Block a user