Commit 7f62f7c3 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

hotfix: added exception for prosody

parent e4e65ab8
Pipeline #7025 passed with stage
in 27 seconds
......@@ -18,6 +18,18 @@ class ProjectPermissions(LDPPermissions):
return ['view', 'add']
return []
def has_permission(self, request, view):
if(get_client_ip(request) == '51.15.243.248'):
return True
return super().has_permission(request, view)
def has_object_permission(self, request, view, obj):
if(get_client_ip(request) == '51.15.243.248'):
return True
return super().has_object_permission(request, view, obj)
class ProjectMemberPermissions(LDPPermissions):
......@@ -47,3 +59,15 @@ class ProjectMemberPermissions(LDPPermissions):
return ['view', 'add']
return []
def has_permission(self, request, view):
if(get_client_ip(request) == '51.15.243.248'):
return True
return super().has_permission(request, view)
def has_object_permission(self, request, view, obj):
if(get_client_ip(request) == '51.15.243.248'):
return True
return super().has_object_permission(request, view, obj)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment