Skip to content

Commit

Permalink
Merge pull request #647 from rushtehrani/master
Browse files Browse the repository at this point in the history
fix: Use correct group for workspaces resource
  • Loading branch information
rushtehrani authored Oct 9, 2020
2 parents 03f8f47 + dd0f1f7 commit 0e1e48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/workspace_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0e1e48d

Please sign in to comment.