mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-17 02:05:58 +08:00
fix: migrate use old rule
This commit is contained in:
@@ -8,7 +8,7 @@ class Ci::Repo < Ci::RemoteBase
|
||||
def self.find_with_namespace(namespace_path, identifier, user_login)
|
||||
logger.info "########namespace_path: #{namespace_path} ########identifier: #{identifier} "
|
||||
user_login = user_login || namespace_path
|
||||
user = Ci::User.find_by_user_login user_login
|
||||
user = Ci::User.find_by(user_login: user_login)
|
||||
repo = Ci::Repo.where(repo_namespace: namespace_path, repo_name: identifier).first
|
||||
|
||||
[user, repo]
|
||||
|
||||
Reference in New Issue
Block a user