Browse Source

oops

master
Julio Biason 11 years ago
parent
commit
70800997c4
  1. 5
      luncho/blueprints/groups.py

5
luncho/blueprints/groups.py

@ -54,10 +54,7 @@ LOG = logging.getLogger('luncho.blueprints.groups')
@groups.route('<token>/', methods=['GET'])
def user_groups(token):
"""Return a list of the groups the user belongs or it's the owner."""
(user, error) = user_or_error(token)
if error:
return error
user = user_from_token(token)
groups = {}
for group in user.groups:
groups[group.id] = {'id': group.id,

Loading…
Cancel
Save