mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00:00
FIX: Only invite admins when automatic backup fails.
This commit is contained in:
parent
b5249fb4ca
commit
b70d4da858
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user