Skip to content

Commit 48f0593

Browse files
committed
Start the move to policy.Action
1 parent a9b8984 commit 48f0593

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

coderd/rbac/authz.go

-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ import (
2626
"github.com/coder/coder/v2/coderd/util/slice"
2727
)
2828

29-
// AllActions is a helper function to return all the possible actions types.
30-
func AllActions() []policy.Action {
31-
return []policy.Action{policy.ActionCreate, policy.ActionRead, policy.ActionUpdate, policy.ActionDelete}
32-
}
33-
3429
type AuthCall struct {
3530
Actor Subject
3631
Action policy.Action

coderd/rbac/scopes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ var builtinScopes = map[ScopeName]Scope{
7474
Name: fmt.Sprintf("Scope_%s", ScopeApplicationConnect),
7575
DisplayName: "Ability to connect to applications",
7676
Site: Permissions(map[string][]policy.Action{
77-
ResourceWorkspaceApplicationConnect.Type: {policy.ActionCreate},
77+
ResourceWorkspace.Type: {policy.ActionApplicationConnect},
7878
}),
7979
Org: map[string][]Permission{},
8080
User: []Permission{},

0 commit comments

Comments
 (0)