Commit 3f0ef5e7 by Kálmán Viktor

dashboard: fix acl update

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