mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: Only invite admins when automatic backup fails.
This commit is contained in:
@ -263,7 +263,7 @@ module BackupRestore
|
||||
logs: Discourse::Utils.pretty_logs(@logs)
|
||||
)
|
||||
|
||||
if @user.id == Discourse::SYSTEM_USER_ID
|
||||
if !@success && @user.id == Discourse::SYSTEM_USER_ID
|
||||
post.topic.invite_group(@user, Group[:admins])
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user