Skip to content

fix: allow all users to read system notification templates #14181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

dannykopping
Copy link
Contributor

Right now, the only entries in the notification_templates table are entries of kind system. These templates are used for system-related notifications, and are "owned" by the system.

All users need access to list these templates as part of coder/internal#19.

For now, I've removed the RBAC check on GetNotificationTemplatesByKind. In the near future when we enable operators to create their own user-defined notification templates, we'll implement the RBAC check here.

All mutative actions on notification_templates entries are still protected by the authorization check.

Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Co-authored-by: Cian Johnston <cian@coder.com>
@dannykopping dannykopping merged commit 58428aa into main Aug 6, 2024
31 checks passed
@dannykopping dannykopping deleted the dk/member-access-templates branch August 6, 2024 13:37
@github-actions github-actions bot locked and limited conversation to collaborators Aug 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants