Make user_id required and add post tests

- raise an exception in ApplicationRoles.get()
- permission_sets is not changed if bad data is sent
This commit is contained in:
Montana
2019-05-07 10:23:58 -04:00
parent 09c0bed47d
commit d5307b440f
5 changed files with 102 additions and 10 deletions

View File

@@ -104,7 +104,6 @@ def update_team(application_id):
form = TeamForm(http_request.form)
if form.validate():
# TODO check that all users coming through are app members
for member in form.members:
app_role = ApplicationRoles.get(member.data["user_id"], application.id)
new_perms = [