Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fixed bug breaking demo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-bougher committed Sep 16, 2015
1 parent 2356d34 commit 0685fdf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,14 @@ def get_items_by_name_and_user(entity, name, user):

items = entity.all().filter("name =", name).fetch(1000)

if user is None:
user_id = -1
else:
user_id = user.user_id

out_items = [item for item in items
if item.user == user.user_id or
item.user == admin_id or
if item.user == admin_id or
item.user == user_id or
item.group in user.group]

return out_items
Expand Down

0 comments on commit 0685fdf

Please sign in to comment.