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

Commit4ec6871

Browse files
authored
chore: update missing RBAC action descriptions (#15389)
Add missing action descriptions so that these appear when in thefrontend when creating/updating custom roles.
1 parent0961468 commit4ec6871

File tree

3 files changed

+39
-39
lines changed

3 files changed

+39
-39
lines changed

‎coderd/rbac/object_gen.go‎

Lines changed: 13 additions & 13 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: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ var RBACPermissions = map[string]PermissionDefinition{
215215
},
216216
"tailnet_coordinator": {
217217
Actions:map[Action]ActionDefinition{
218-
ActionCreate:actDef(""),
219-
ActionRead:actDef(""),
220-
ActionUpdate:actDef(""),
221-
ActionDelete:actDef(""),
218+
ActionCreate:actDef("create a Tailnet coordinator"),
219+
ActionRead:actDef("view info about a Tailnet coordinator"),
220+
ActionUpdate:actDef("update a Tailnet coordinator"),
221+
ActionDelete:actDef("delete a Tailnet coordinator"),
222222
},
223223
},
224224
"assign_role": {
@@ -241,25 +241,25 @@ var RBACPermissions = map[string]PermissionDefinition{
241241
},
242242
"oauth2_app": {
243243
Actions:map[Action]ActionDefinition{
244-
ActionCreate:actDef("make an OAuth2 app."),
244+
ActionCreate:actDef("make an OAuth2 app"),
245245
ActionRead:actDef("read OAuth2 apps"),
246-
ActionUpdate:actDef("update the properties of the OAuth2 app."),
246+
ActionUpdate:actDef("update the properties of the OAuth2 app"),
247247
ActionDelete:actDef("delete an OAuth2 app"),
248248
},
249249
},
250250
"oauth2_app_secret": {
251251
Actions:map[Action]ActionDefinition{
252-
ActionCreate:actDef(""),
253-
ActionRead:actDef(""),
254-
ActionUpdate:actDef(""),
255-
ActionDelete:actDef(""),
252+
ActionCreate:actDef("create an OAuth2 app secret"),
253+
ActionRead:actDef("read an OAuth2 app secret"),
254+
ActionUpdate:actDef("update an OAuth2 app secret"),
255+
ActionDelete:actDef("delete an OAuth2 app secret"),
256256
},
257257
},
258258
"oauth2_app_code_token": {
259259
Actions:map[Action]ActionDefinition{
260-
ActionCreate:actDef(""),
261-
ActionRead:actDef(""),
262-
ActionDelete:actDef(""),
260+
ActionCreate:actDef("create an OAuth2 app code token"),
261+
ActionRead:actDef("read an OAuth2 app code token"),
262+
ActionDelete:actDef("delete an OAuth2 app code token"),
263263
},
264264
},
265265
"notification_message": {

‎site/src/api/rbacresourcesGenerated.ts‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,21 +85,21 @@ export const RBACResourceActions: Partial<
8585
update:"update notification templates",
8686
},
8787
oauth2_app:{
88-
create:"make an OAuth2 app.",
88+
create:"make an OAuth2 app",
8989
delete:"delete an OAuth2 app",
9090
read:"read OAuth2 apps",
91-
update:"update the properties of the OAuth2 app.",
91+
update:"update the properties of the OAuth2 app",
9292
},
9393
oauth2_app_code_token:{
94-
create:"",
95-
delete:"",
96-
read:"",
94+
create:"create an OAuth2 app code token",
95+
delete:"delete an OAuth2 app code token",
96+
read:"read an OAuth2 app code token",
9797
},
9898
oauth2_app_secret:{
99-
create:"",
100-
delete:"",
101-
read:"",
102-
update:"",
99+
create:"create an OAuth2 app secret",
100+
delete:"delete an OAuth2 app secret",
101+
read:"read an OAuth2 app secret",
102+
update:"update an OAuth2 app secret",
103103
},
104104
organization:{
105105
create:"create an organization",
@@ -134,10 +134,10 @@ export const RBACResourceActions: Partial<
134134
update:"update system resources",
135135
},
136136
tailnet_coordinator:{
137-
create:"",
138-
delete:"",
139-
read:"",
140-
update:"",
137+
create:"create a Tailnet coordinator",
138+
delete:"delete a Tailnet coordinator",
139+
read:"view info about a Tailnet coordinator",
140+
update:"update a Tailnet coordinator",
141141
},
142142
template:{
143143
create:"create a template",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp