Skip to content
Snippets Groups Projects

Feature/add ipopenperm to djangoldp

Merged Benoit Alessandroni requested to merge feature/add-ipopenperm-to-djangoldp into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -242,7 +242,7 @@ class IPOpenPermissions(LDPBasePermission):
@@ -242,7 +242,7 @@ class IPOpenPermissions(LDPBasePermission):
def has_object_permission(self, request, view, obj):
def has_object_permission(self, request, view, obj):
return check_client_ip(request)
return check_client_ip(request)
def get_permissions(self, user, model, obj=None):
def get_permissions(self, user, model, obj=None):
#Will always say there is no migrations, not taking the IP into accounts
#Will always say there is no migrations, not taking the IP into accounts
return set()
return set()
Loading