From 4713f526d08213b0b5c085721b8362a0375f2cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=B1=E5=91=B1=E5=91=B1?= Date: Thu, 20 Jul 2023 17:25:28 +0800 Subject: [PATCH] update fork org message --- app/controllers/forks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/forks_controller.rb b/app/controllers/forks_controller.rb index 0b6b7ce43..b38cde6a3 100644 --- a/app/controllers/forks_controller.rb +++ b/app/controllers/forks_controller.rb @@ -28,7 +28,7 @@ class ForksController < ApplicationController if params[:organization].present? return render_forbidden('参数错误,当organization存在时不允许fork重命名') if params[:new_identifier].present? || params[:new_name].present? @organization = Organization.find_by(login:params[:organization]) - return render_forbidden('仓库不存在') unless @organization.present? + return render_forbidden('组织不存在') unless @organization.present? return render_forbidden('你没有权限操作') unless @organization.is_admin?(current_user.id) return render_result(-1, "fork失败,组织已拥有了这个项目") if @organization && Project.exists?(user_id: [@organization.id], identifier: (params[:new_identifier] || @project.identifier)) return render_result(-1, "fork失败,请联系系统管理员") if gitea_check_exit(@organization)