Commit 670ed304 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

fix: auto_author

parent d75d9f43
Pipeline #4699 passed with stage
in 1 minute and 19 seconds
......@@ -36,7 +36,7 @@ class LDPPermissions(BasePermission):
return anonymous_perms
else:
if hasattr(obj._meta, 'auto_author') and getattr(obj, Model.get_meta(obj, 'auto_author')) == user:
if hasattr(obj._meta, 'auto_author') and getattr(obj, getattr(obj, 'auto_author')) == user:
return owner_perms
else:
......
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