mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 14:26:48 +08:00
FEATURE: further restrict downloading of backups
- send email to logged in admin when they press the "download" button - show pop-up that email was sent - create email template - require a valid token to download backup
This commit is contained in:
@ -232,6 +232,7 @@ Discourse::Application.routes.draw do
|
||||
resources :backups, only: [:index, :create], constraints: AdminConstraint.new do
|
||||
member do
|
||||
get "" => "backups#show", constraints: { id: BACKUP_ROUTE_FORMAT }
|
||||
put "" => "backups#email", constraints: { id: BACKUP_ROUTE_FORMAT }
|
||||
delete "" => "backups#destroy", constraints: { id: BACKUP_ROUTE_FORMAT }
|
||||
post "restore" => "backups#restore", constraints: { id: BACKUP_ROUTE_FORMAT }
|
||||
end
|
||||
|
Reference in New Issue
Block a user