diff --git a/app/controllers/gits_controller.rb b/app/controllers/gits_controller.rb index 0767eab02..dc54fa1b6 100644 --- a/app/controllers/gits_controller.rb +++ b/app/controllers/gits_controller.rb @@ -68,8 +68,9 @@ class GitsController < ApplicationController end else uid_logger_error("shixun is not exist") - # result = false - result = true # 为了测试跳出 + # 找TPI的版本库是不是自己 + myshixun = Myshixun.find_by(repo_name: repo_name) + result = (myshixun.present? && system_user&.id == myshixun.user_id ? true : false) end end end