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

Commitc4d45ce

Browse files
committed
cleanup and make gen
1 parent11a1af5 commitc4d45ce

File tree

7 files changed

+128
-150
lines changed

7 files changed

+128
-150
lines changed

‎coderd/apidoc/docs.go

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/apidoc/swagger.json

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/coderd.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ func New(options *Options) *API {
424424
TemplateScheduleStore:options.TemplateScheduleStore,
425425
UserQuietHoursScheduleStore:options.UserQuietHoursScheduleStore,
426426
AccessControlStore:options.AccessControlStore,
427+
CustomRoleHandler: atomic.Pointer[CustomRoleHandler]{},
427428
Experiments:experiments,
428429
healthCheckGroup:&singleflight.Group[string,*healthsdk.HealthcheckReport]{},
429430
Acquirer:provisionerdserver.NewAcquirer(
@@ -436,6 +437,8 @@ func New(options *Options) *API {
436437
workspaceUsageTracker:options.WorkspaceUsageTracker,
437438
}
438439

440+
varcustomRoleHandlerCustomRoleHandler=&agplCustomRoleHandler{}
441+
api.CustomRoleHandler.Store(&customRoleHandler)
439442
api.AppearanceFetcher.Store(&appearance.DefaultFetcher)
440443
api.PortSharer.Store(&portsharing.DefaultPortSharer)
441444
buildInfo:= codersdk.BuildInfoResponse{

‎coderd/database/dbauthz/dbauthz.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ func (q *querier) canAssignRoles(ctx context.Context, orgID *uuid.UUID, added, r
615615
}
616616

617617
ifroleOrgID!=*orgID {
618-
returnxerrors.Errorf("attempted to assign role from a different org, role %q to %q",r,(*orgID).String())
618+
returnxerrors.Errorf("attempted to assign role from a different org, role %q to %q",r,orgID.String())
619619
}
620620
}
621621

‎coderd/roles.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type CustomRoleHandler interface {
2626

2727
typeagplCustomRoleHandlerstruct{}
2828

29-
func (agplCustomRoleHandler)PatchOrganizationRole(ctx context.Context,db database.Store,rw http.ResponseWriter,orgID uuid.UUID,role codersdk.Role) (codersdk.Role,bool) {
29+
func (agplCustomRoleHandler)PatchOrganizationRole(ctx context.Context,_ database.Store,rw http.ResponseWriter,_ uuid.UUID,_ codersdk.Role) (codersdk.Role,bool) {
3030
httpapi.Write(ctx,rw,http.StatusForbidden, codersdk.Response{
3131
Message:"Creating and updating custom roles is an Enterprise feature. Contact sales!",
3232
})

‎docs/api/members.md

Lines changed: 75 additions & 75 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp