From 193dbe156e863b843a3d14de8a144f785aeb6543 Mon Sep 17 00:00:00 2001 From: Andrey Melnikov Date: Tue, 27 Jul 2021 11:05:26 -0700 Subject: [PATCH] fix: issue where wrong namespace was obtained from certain urls for workspaces/models --- server/auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/auth/auth.go b/server/auth/auth.go index 033d972..0e0ca21 100644 --- a/server/auth/auth.go +++ b/server/auth/auth.go @@ -275,7 +275,7 @@ func UnaryInterceptor(kubeConfig *v1.Config, db *v1.DB, sysConfig v1.SystemConfi pieces := strings.Split(workspaceAndNamespace, "--") if len(pieces) > 1 { workspaceName := pieces[0] - namespace := pieces[1] + namespace := pieces[len(pieces)-1] isAuthorizedRequest, ok := req.(*api.IsAuthorizedRequest) if ok {