Prevent saving environment roles as empty strings
This commit is contained in:
@@ -249,7 +249,8 @@ def update_member(workspace_id, member_id):
|
||||
if re.match("env_", entry):
|
||||
env_id = entry[4:]
|
||||
env_role = form_dict[entry]
|
||||
ids_and_roles.append({"id": env_id, "role": env_role})
|
||||
if env_role:
|
||||
ids_and_roles.append({"id": env_id, "role": env_role})
|
||||
|
||||
form = EditMemberForm(http_request.form)
|
||||
|
||||
|
Reference in New Issue
Block a user