Commit 79175989 authored by Sylvain Le Bon's avatar Sylvain Le Bon

update: disabled permissions

parent 623fb9ab
......@@ -113,8 +113,6 @@ class LDPViewSet(LDPViewSetGenerator):
renderer_classes = (JSONLDRenderer, )
parser_classes = (JSONLDParser, )
authentication_classes = (NoCSRFAuthentication,)
permission_classes = (WACPermissions,)
filter_backends = (DjangoObjectPermissionsFilter,)
def __init__(self, **kwargs):
super().__init__(**kwargs)
......@@ -139,8 +137,9 @@ class LDPViewSet(LDPViewSetGenerator):
def get_queryset(self, *args, **kwargs):
if self.model:
perm="view_{}".format(self.model._meta.model_name.lower())
return get_objects_for_user(self.request.user, perm, klass=self.model)
return self.model.objects.all()
# perm="view_{}".format(self.model._meta.model_name.lower())
# return get_objects_for_user(self.request.user, perm, klass=self.model)
else:
return super(LDPView, self).get_queryset(*args, **kwargs)
......
......@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='djangoldp',
version='0.5a10',
version='0.5a12',
url='https://git.happy-dev.fr/happy-dev/djangoldp/',
author="Startin'blox",
author_email='sylvain@happy-dev.fr',
......
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