Commit 3f0ef5e7 by Kálmán Viktor

dashboard: fix acl update

parent ab361c47
......@@ -457,7 +457,7 @@ class AclUpdateView(LoginRequiredMixin, View, SingleObjectMixin):
if m:
typ, id = m.groups()
entity = {'u': User, 'g': Group}[typ].objects.get(id=id)
if instance.owner == entity:
if getattr(instance, "owner", None) == entity:"Tried to set owner's acl level for %s by %s.",
unicode(instance), unicode(request.user))
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 sign in to comment