mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: create ResourceNotificationMessage and AsNotifier (#15301)
Closes https://github.com/coder/coder/issues/15213 This PR enables sending notifications without requiring the auth system context, instead using a new auth notifier context.
This commit is contained in:
@@ -262,6 +262,14 @@ var RBACPermissions = map[string]PermissionDefinition{
|
||||
ActionDelete: actDef(""),
|
||||
},
|
||||
},
|
||||
"notification_message": {
|
||||
Actions: map[Action]ActionDefinition{
|
||||
ActionCreate: actDef("create notification messages"),
|
||||
ActionRead: actDef("read notification messages"),
|
||||
ActionUpdate: actDef("update notification messages"),
|
||||
ActionDelete: actDef("delete notification messages"),
|
||||
},
|
||||
},
|
||||
"notification_template": {
|
||||
Actions: map[Action]ActionDefinition{
|
||||
ActionRead: actDef("read notification templates"),
|
||||
|
||||
Reference in New Issue
Block a user