Skip to content

Commit eff74a2

Browse files
committed
Add notification preferences RBAC role
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent b5a5932 commit eff74a2

File tree

9 files changed

+240
-209
lines changed

9 files changed

+240
-209
lines changed

coderd/apidoc/docs.go

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

coderd/apidoc/swagger.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing 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 about customizing how changed files appear on GitHub.

coderd/rbac/policy/policy.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,10 @@ var RBACPermissions = map[string]PermissionDefinition{
261261
ActionUpdate: actDef("update notification templates"),
262262
},
263263
},
264+
"notification_preference": {
265+
Actions: map[Action]ActionDefinition{
266+
ActionReadPersonal: actDef("read own notification preferences"),
267+
ActionUpdatePersonal: actDef("update own notification preferences"),
268+
},
269+
},
264270
}

codersdk/rbacresources_gen.go

Lines changed: 56 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)