discourse/spec
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
..
fabricators FIX: Fix broken client-side review actions (#29025) 2024-09-30 13:27:25 +08:00
fixtures FEATURE: Allow oneboxing private GitHub repo URLs and add private indicator to HTML (#27947) 2024-07-19 12:21:45 +10:00
generator
helpers
import_export
initializers
integration DEV: Enable Rails 7.1 defaults 2024-08-12 10:41:13 +02:00
integrity DEV: Add spec to ensure app works with multiple tagged loggers 2024-08-13 18:10:03 +02:00
jobs FIX: Appropriately handle uninstalled problem checks (#28771) 2024-09-18 10:11:52 +08:00
lib SECURITY: prevent topic list filtering by hidden tags for unathorized users 2024-10-07 11:48:55 +08:00
mailers
migrations
models SECURITY: add pagination to post replies 2024-10-07 11:48:48 +08:00
multisite FIX: serialize Flags instead of PostActionType (#28362) 2024-08-14 12:13:46 +10:00
requests SECURITY: Block registrations for encoded emails that are invalid 2024-10-07 11:48:52 +08:00
script/import_scripts
serializers DEV: Resolve stat registration flaky tests (#29084) 2024-10-04 13:49:22 +01:00
services FIX: Support idempotent admin notice dismissal (#29099) 2024-10-07 12:29:33 +08:00
support DEV: Track SQL queries from MiniSql (#28824) 2024-09-11 10:14:53 +03:00
system FIX: Only render admin notice dismiss button for admins (#29103) 2024-10-07 13:14:01 +08:00
tasks DEV: Stop storing theme-transpiler on filesystem in development (#28198) 2024-08-01 17:59:34 +01:00
views
rails_helper.rb DEV: Drop WithServiceHelper 2024-09-05 09:58:20 +02:00
regenerate_swagger_docs
swagger_helper.rb