Commit de9e099a by Oláh István Gergely

dashboard: views quickfix

parent b8e7c396
...@@ -635,8 +635,6 @@ class AclUpdateView(LoginRequiredMixin, View, SingleObjectMixin): ...@@ -635,8 +635,6 @@ class AclUpdateView(LoginRequiredMixin, View, SingleObjectMixin):
m = re.match('perm-([ug])-(\d+)', key) m = re.match('perm-([ug])-(\d+)', key)
if m: if m:
typ, id = m.groups() typ, id = m.groups()
print "+++++++++++++++++++++"
print typ
entity = {'u': User, 'g': Group}[typ].objects.get(id=id) entity = {'u': User, 'g': Group}[typ].objects.get(id=id)
if getattr(instance, "owner", None) == 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.",
......
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