mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
FIX unbind ci cloud account bug
This commit is contained in:
@@ -58,7 +58,7 @@ module Ci::CloudAccountManageable
|
||||
|
||||
if current_user.devops_step == User::DEVOPS_UNINIT || cloud_account.blank?
|
||||
return render_error('你未绑定CI服务器')
|
||||
elsif current_user.devops_step == User::DEVOPS_UNVERIFIED || current_user.ci_certification?
|
||||
elsif current_user.devops_step != User::DEVOPS_UNINIT || current_user.ci_certification?
|
||||
cloud_account.destroy!
|
||||
# TOTO drop drone database
|
||||
@connection.execute("DROP DATABASE IF EXISTS #{current_user.login}_drone")
|
||||
|
||||
Reference in New Issue
Block a user