Commit 0c145f5b authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

fix: target meta

parent 670ed304
Pipeline #4701 passed with stage
in 1 minute and 20 seconds
......@@ -36,7 +36,7 @@ class LDPPermissions(BasePermission):
return anonymous_perms
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
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