mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Only invite admins when automatic backup fails.
This commit is contained in:
parent
b5249fb4ca
commit
b70d4da858
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue