display message for successfully updating environment role / access

This commit is contained in:
dandds
2018-12-12 11:39:58 -05:00
parent 2218b180a5
commit a75c19188f
5 changed files with 51 additions and 6 deletions

View File

@@ -158,9 +158,12 @@ def update_member(workspace_id, member_id):
updated_role=new_role_name,
)
Environments.update_environment_roles(
updated_roles = Environments.update_environment_roles(
g.current_user, workspace, member, ids_and_roles
)
if updated_roles:
flash("environment_access_changed")
return redirect(
url_for("workspaces.workspace_members", workspace_id=workspace.id)
)