mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 13:59:04 +08:00
ec7703e622
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. |
||
---|---|---|
.. | ||
adapters | ||
components | ||
controllers | ||
helpers | ||
lib | ||
mixins | ||
models | ||
routes | ||
services | ||
templates |