From dd0f1f7705d76283b30e754e327d104c33638b53 Mon Sep 17 00:00:00 2001 From: rushtehrani Date: Thu, 8 Oct 2020 19:52:48 -0700 Subject: [PATCH] use correct group for workspaces resource --- server/workspace_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/workspace_server.go b/server/workspace_server.go index f1da0ebd..81652c65 100644 --- a/server/workspace_server.go +++ b/server/workspace_server.go @@ -363,7 +363,7 @@ func (s *WorkspaceServer) RetryLastWorkspaceAction(ctx context.Context, req *api func (s *WorkspaceServer) GetWorkspaceStatisticsForNamespace(ctx context.Context, req *api.GetWorkspaceStatisticsForNamespaceRequest) (*api.GetWorkspaceStatisticsForNamespaceResponse, error) { client := getClient(ctx) - allowed, err := auth.IsAuthorized(client, req.Namespace, "list", "argoproj.io", "workspaces", "") + allowed, err := auth.IsAuthorized(client, req.Namespace, "list", "onepanel.io", "workspaces", "") if err != nil || !allowed { return nil, err }