mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
FEATURE: Log admin action when readonly mode is changed.
This commit is contained in:
@ -103,6 +103,8 @@ class Admin::BackupsController < Admin::AdminController
|
||||
Discourse.disable_readonly_mode(readonly_mode_key)
|
||||
end
|
||||
|
||||
StaffActionLogger.new(current_user).log_change_readonly_mode(enable)
|
||||
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user