Commit 66f0ec37 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

fix: permissions on container

parent 517c1617
Pipeline #4908 passed with stage
in 1 minute and 26 seconds
......@@ -44,11 +44,7 @@ class LDPPermissions(BasePermission):
def filter_user_perms(self, user, model, permissions):
# Only used on Model.get_permissions to translate permissions to LDP
if hasattr(model._meta, 'owner_field'):
obj = model
else:
obj = None
return [perm for perm in permissions if perm in self.user_permissions(user, model, obj)]
return [perm for perm in permissions if perm in self.user_permissions(user, model)]
perms_map = {
......
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