Merge "Fix the slightly incomplete logic for changing private story permissions"

This commit is contained in:
Jenkins 2016-12-22 19:11:55 +00:00 committed by Gerrit Code Review
commit ea1920488c
1 changed files with 2 additions and 2 deletions

View File

@ -305,9 +305,9 @@ class StoriesController(rest.RestController):
valid = True
if users == [] and teams == []:
valid = False
elif users == [] and original_teams == []:
elif users == [] and (original_teams == [] and not teams):
valid = False
elif teams == [] and original_users == []:
elif teams == [] and (original_users == [] and not users):
valid = False
if not valid and original_story.private:
abort(400,