mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-25 12:55:00 +08:00
his is a new feature that lets admins dismiss notices from the dashboard. This helps with self-service in cases where a notice is "stuck", while we work on provisions to prevent "sticking" in the first place.
10 lines
266 B
Ruby
Vendored
10 lines
266 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class Admin::AdminNoticesController < Admin::StaffController
|
|
def destroy
|
|
AdminNotices::Dismiss.call do
|
|
on_success { render(json: success_json) }
|
|
on_failure { render(json: failed_json, status: 422) }
|
|
end
|
|
end
|
|
end
|