mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix: allow all users to read system notification templates (#14181)
This commit is contained in:
@ -2610,8 +2610,10 @@ func (s *MethodTestSuite) TestNotifications() {
|
||||
}))
|
||||
s.Run("GetNotificationTemplatesByKind", s.Subtest(func(db database.Store, check *expects) {
|
||||
check.Args(database.NotificationTemplateKindSystem).
|
||||
Asserts(rbac.ResourceNotificationTemplate, policy.ActionRead).
|
||||
Asserts().
|
||||
Errors(dbmem.ErrUnimplemented)
|
||||
|
||||
// TODO(dannyk): add support for other database.NotificationTemplateKind types once implemented.
|
||||
}))
|
||||
s.Run("UpdateNotificationTemplateMethodByID", s.Subtest(func(db database.Store, check *expects) {
|
||||
check.Args(database.UpdateNotificationTemplateMethodByIDParams{
|
||||
|
Reference in New Issue
Block a user