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

Commitba4c327

Browse files
committed
cleanup
1 parent0fab76f commitba4c327

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

‎coderd/rbac/roles.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -592,11 +592,6 @@ func roleSplit(role string) (name string, orgID string, err error) {
592592
returnarr[0],"",nil
593593
}
594594

595-
funcPerm[TObjecter](ffunc(oT) []policy.Action) []policy.Action {
596-
vartT
597-
returnf(t)
598-
}
599-
600595
// Permissions is just a helper function to make building roles that list out resources
601596
// and actions a bit easier.
602597
funcPermissions(permsmap[string][]policy.Action) []Permission {

‎coderd/rbac/roles_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ func TestOwnerExec(t *testing.T) {
5656
})
5757
}
5858

59-
// TODO: add the SYSTEM to the MATRIX
6059
funcTestRolePermissions(t*testing.T) {
6160
t.Parallel()
6261

‎support/support.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ func Run(ctx context.Context, d *Deps) (*Bundle, error) {
460460
authChecks:=map[string]codersdk.AuthorizationCheck{
461461
"Read DeploymentValues": {
462462
Object: codersdk.AuthorizationObject{
463-
ResourceType:codersdk.ResourceDeploymentValues,
463+
ResourceType:codersdk.ResourceDeploymentConfig,
464464
},
465465
Action:string(policy.ActionRead),
466466
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp