Fix missing .all

- Legacy-Id: 3841
This commit is contained in:
Ole Laursen 2012-01-20 16:21:11 +00:00
parent 0f6053166e
commit 5554f3ab1b

View file

@ -462,7 +462,7 @@ def user_roles_json(user):
elif r.name_id == "ad" and r.group.type_id == "area" and r.group.state_id == "active":
roles["Area Director"] = roles["Area_Director"] = True
else:
for g in user.groups:
for g in user.groups.all():
roles[g.name] = True
return mark_safe(simplejson.dumps(roles))