mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 13:45:44 +08:00
解绑时取消激活该用户的所有项目
This commit is contained in:
@@ -14,6 +14,12 @@ class Ci::Repo < Ci::RemoteBase
|
||||
[user, repo]
|
||||
end
|
||||
|
||||
def self.find_all_with_namespace(namespace_path)
|
||||
logger.info "########namespace_path: #{namespace_path}"
|
||||
repos = Ci::Repo.where(repo_namespace: namespace_path)
|
||||
return repos
|
||||
end
|
||||
|
||||
def activate!(ci_user_id)
|
||||
update(repo_active: 1,
|
||||
repo_signer: generate_code,
|
||||
|
||||
Reference in New Issue
Block a user