Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitee1e95d

Browse files
committed
Start the move to policy.Action
1 parent36808a4 commitee1e95d

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

‎coderd/rbac/authz.go

Lines changed: 0 additions & 5 deletions
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-
funcAllActions() []policy.Action {
31-
return []policy.Action{policy.ActionCreate,policy.ActionRead,policy.ActionUpdate,policy.ActionDelete}
32-
}
33-
3429
typeAuthCallstruct {
3530
ActorSubject
3631
Action policy.Action

‎coderd/rbac/scopes.go

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp