Skip to content

Commit

Permalink
fix: let contributors with read access view workspaces
Browse files Browse the repository at this point in the history
We have three roles: admin, maintainer, and contributor.

The contributor role grants you read-only verbs.

As this was previously coded, having contributor rights in a namespace
would not be sufficient for it to show up in the workspace switcher.

Signed-off-by: Ralph Bean <[email protected]>
  • Loading branch information
ralphbean committed Feb 7, 2025
1 parent 199691f commit afd14ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var getNamespacesWithAccess = func(
var allowedNs []core.Namespace
for _, ns := range allNamespaces {
notAllowed := false
for _, verb := range []string{"create", "list", "watch", "delete"} {
for _, verb := range []string{"list", "watch"} {
for _, resource := range []string{"applications", "components"} {
allowed, err := runAccessCheck(
authCl,
Expand Down

0 comments on commit afd14ff

Please sign in to comment.