Skip to content
Snippets Groups Projects
Verified Commit 0c145f5b authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

fix: target meta

parent 670ed304
No related branches found
No related tags found
No related merge requests found
Pipeline #1024 passed
......@@ -36,7 +36,7 @@ class LDPPermissions(BasePermission):
return anonymous_perms
else:
if hasattr(obj._meta, 'auto_author') and getattr(obj, getattr(obj, 'auto_author')) == user:
if hasattr(obj._meta, 'auto_author') and getattr(obj, getattr(obj._meta, 'auto_author')) == user:
return owner_perms
else:
......
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