Fix backend check

parent db51b4d4
......@@ -27,7 +27,7 @@ class CommitteeBackend(object):
return set()
if not hasattr(user, perm_cache_name):
perms = (Permission.objects
.filter(committee=committees)
.filter(committee__in=committees)
.values_list('content_type__app_label', 'codename')
.order_by())
setattr(user, perm_cache_name,
......
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