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

Commit3e1087e

Browse files
committed
make gen
1 parent2c243d1 commit3e1087e

File tree

11 files changed

+50
-8
lines changed

11 files changed

+50
-8
lines changed

‎coderd/apidoc/docs.go‎

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

‎coderd/apidoc/swagger.json‎

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

‎coderd/rbac/object_gen.go‎

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

‎coderd/rbac/policy/policy.go‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,4 +274,11 @@ var RBACPermissions = map[string]PermissionDefinition{
274274
ActionUpdate:actDef("update notification preferences"),
275275
},
276276
},
277+
// idpsync_settings should always be org scoped
278+
"idpsync_settings": {
279+
Actions:map[Action]ActionDefinition{
280+
ActionRead:actDef("read IdP sync settings"),
281+
ActionUpdate:actDef("update IdP sync settings"),
282+
},
283+
},
277284
}

‎codersdk/rbacresources_gen.go‎

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

‎docs/reference/api/members.md‎

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

‎docs/reference/api/schemas.md‎

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

‎enterprise/coderd/coderd.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
289289
r.Delete("/organizations/{organization}/members/roles/{roleName}",api.deleteOrgRole)
290290
r.Route("/organizations/{organization}/settings",func(r chi.Router) {
291291
r.Get("/idpsync/groups",api.groupIDPSyncSettings)
292-
r.Post("/idpsync/groups",api.postGroupIDPSyncSettings)
292+
r.Patch("/idpsync/groups",api.patchGroupIDPSyncSettings)
293293
})
294294
})
295295

‎enterprise/coderd/idpsync.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ func (api *API) groupIDPSyncSettings(rw http.ResponseWriter, r *http.Request) {
3838
// @Tags Enterprise
3939
// @Param organization path string true "Organization ID" format(uuid)
4040
// @Success 200 {object} idpsync.GroupSyncSettings
41-
// @Router /organizations/{organization}/settings/idpsync/groups [post]
42-
func (api*API)postGroupIDPSyncSettings(rw http.ResponseWriter,r*http.Request) {
41+
// @Router /organizations/{organization}/settings/idpsync/groups [patch]
42+
func (api*API)patchGroupIDPSyncSettings(rw http.ResponseWriter,r*http.Request) {
4343
ctx:=r.Context()
4444
org:=httpmw.OrganizationParam(r)
4545

‎site/src/api/rbacresourcesGenerated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ export const RBACResourceActions: Partial<
5555
group_member:{
5656
read:"read group members",
5757
},
58+
idpsync_settings:{
59+
read:"read IdP sync settings",
60+
update:"update IdP sync settings",
61+
},
5862
license:{
5963
create:"create a license",
6064
delete:"delete license",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp