Skip to content

Commit

Permalink
PLD: do not get with groups, closes #441
Browse files Browse the repository at this point in the history
  • Loading branch information
pld committed Aug 4, 2014
1 parent 43751b4 commit 95a9e52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion onadata/libs/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,14 @@ def get_object_users_with_permissions(obj):
"""Returns users, roles and permissions for a object.
"""
users_with_perms = []

if obj:
users_with_perms = [{
'user': user,
'role': get_role(permissions, obj),
'permissions': permissions} for user, permissions in
get_users_with_perms(obj, attach_perms=True).items()]
get_users_with_perms(obj,
attach_perms=True,
with_group_users=False).items()]

return users_with_perms

0 comments on commit 95a9e52

Please sign in to comment.