Skip to content
Snippets Groups Projects
Commit 61062c7a authored by Sylvain Le Bon's avatar Sylvain Le Bon
Browse files

bugfix: added the missing filter

parent 2a96da5a
No related branches found
No related tags found
1 merge request!115update: new permission system.
Pipeline #15920 failed
from django.conf import settings
from djangoldp.permissions import LDPBasePermission
from djangoldp.utils import is_anonymous_user
from .filters import IPFilterBackend
XMPP_SERVERS = set({'51.15.243.248', '212.47.234.179', '2001:bc8:47b0:2711::1'})
......@@ -25,6 +23,7 @@ def check_client_ip(request):
return False
class IPOpenPermissions(LDPBasePermission):
filter_backend = IPFilterBackend
def has_permission(self, request, view):
return check_client_ip(request)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment