test: include per-org default roles in rbac user subjects (#26003)

Aligns the `coderdtest` user subject helper with production so per-org default member roles surface in tests.
This commit is contained in:
Steven Masley
2026-06-05 15:01:45 -05:00
committed by GitHub
parent 938c2080f3
commit 8a5e04e90f
4 changed files with 40 additions and 33 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ import (
// Handler: MyHandler,
// CtxMutator: func(ctx context.Context) context.Context {
// ctx = httpmw.WithWorkspaceParam(ctx, ws)
// ctx = dbauthz.As(ctx, coderdtest.MemberSubject(userID, orgID))
// ctx = dbauthz.As(ctx, mySubject(userID, orgID))
// return ctx
// },
// Logger: logger.Named("roundtripper"),