Skip to content

Commit 746ff70

Browse files
committed
chore: add 'use' verb to template object
1 parent 303c4a9 commit 746ff70

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

coderd/rbac/object_gen.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/rbac/policy/policy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ var RBACPermissions = map[string]PermissionDefinition{
135135
Actions: map[Action]ActionDefinition{
136136
ActionCreate: actDef("create a template"),
137137
// TODO: Create a use permission maybe?
138+
ActionUse: actDef("use the template to create a workspace"),
138139
ActionRead: actDef("read template"),
139140
ActionUpdate: actDef("update a template"),
140141
ActionDelete: actDef("delete a template"),

codersdk/rbacresources_gen.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/api/rbacresourcesGenerated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export const RBACResourceActions: Partial<
144144
delete: "delete a template",
145145
read: "read template",
146146
update: "update a template",
147+
use: "use the template to create a workspace",
147148
view_insights: "view insights",
148149
},
149150
user: {

0 commit comments

Comments
 (0)