From e9f9ff0cd5943a3c889863d7b22736c0bf72c003 Mon Sep 17 00:00:00 2001 From: Montana Date: Thu, 20 Sep 2018 14:41:07 -0400 Subject: [PATCH] Fix update environment role bug --- atst/domain/environments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atst/domain/environments.py b/atst/domain/environments.py index 5a079f4e..ce4da176 100644 --- a/atst/domain/environments.py +++ b/atst/domain/environments.py @@ -58,8 +58,8 @@ class Environments(object): @classmethod def update_environment_role(cls, ids_and_roles, workspace_user): Authorization.check_workspace_permission( - user, - workspace, + workspace_user.user, + workspace_user.workspace, Permissions.ADD_AND_ASSIGN_CSP_ROLES, "assign environment roles", )