discourse/app/assets/javascripts/admin/addon
Ted Johansson ec7703e622
FIX: Only render admin notice dismiss button for admins (#29103)
Dismissing admin notices is an admin-only action. This is enforced on the back-end both by a routing constraint and a policy in the relevant service.

However, we still unconditionally display the "Dismiss" button to anyone with access to the admin dashboard. When clicked, it results in a 404 modal (due to the routing constraint.)

With this change we only render the dismiss button for admins.
2024-10-07 13:14:01 +08:00
..
adapters FEATURE: Add Filter for Webhook Events by Status (#27332) 2024-06-07 10:26:00 -05:00
components FIX: Only render admin notice dismiss button for admins (#29103) 2024-10-07 13:14:01 +08:00
controllers FEAT: Allow admin delete user's associated accounts (#29018) 2024-09-27 20:08:05 +08:00
helpers DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
lib DEV: Convert admin charts to glimmer/gjs (#28271) 2024-08-23 14:59:56 +02:00
mixins DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
models FIX: Unscoped plugin config page actions outlet (#29026) 2024-09-30 14:35:23 +10:00
routes DEV: Add a skeleton for section landing page & items (#28477) 2024-10-02 12:19:38 +10:00
services DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
templates DEV: Add a skeleton for section landing page & items (#28477) 2024-10-02 12:19:38 +10:00