git 认证问题

dev_aliyun
daiao 5 years ago
parent 078c37cbda
commit 28b030d4f7

@ -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

Loading…
Cancel
Save