FEATURE: Log admin action when readonly mode is changed.

This commit is contained in:
Guo Xiang Tan
2017-01-11 14:46:48 +08:00
parent 240c4870cf
commit 515f50e42e
6 changed files with 49 additions and 5 deletions

View File

@ -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