fix is_owner check (#2985)

This commit is contained in:
Grace Guo 2017-06-19 10:57:30 -07:00 committed by GitHub
parent c083aec8e8
commit fc5db474b7

View File

@ -78,7 +78,7 @@ def json_success(json_msg, status=200):
def is_owner(obj, user):
""" Check if user is owner of the slice """
return obj and obj.owners and user in obj.owners
return obj and user in obj.owners
def check_ownership(obj, raise_if_false=True):