Skip to content

Commit 1c99808

Browse files
committed
cleanup
1 parent 95a22b3 commit 1c99808

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
return arr[0], "", nil
593593
}
594594

595-
func Perm[T Objecter](f func(o T) []policy.Action) []policy.Action {
596-
var t T
597-
return f(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
func Permissions(perms map[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
func TestRolePermissions(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)