mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user