* Modify gitlab access check.

This commit is contained in:
caoyanyi
2022-07-05 14:47:40 +08:00
parent 7a01041c35
commit 6557ff6ddf
8 changed files with 25 additions and 27 deletions
+2 -2
View File
@@ -2034,13 +2034,13 @@ class repoModel extends model
* @param int $projectID
* @return array
*/
public function getGitLabRepoList($gitlabID, $projectID)
public function getGitLabRepoList($gitlabID, $projectID = 0)
{
return $this->dao->select('*')->from(TABLE_REPO)->where('deleted')->eq('0')
->andWhere('SCM')->eq('Gitlab')
->andWhere('synced')->eq(1)
->andWhere('client')->eq($gitlabID)
->andWhere('path')->eq($projectID)
->beginIF($projectID)->andWhere('path')->eq($projectID)->fi()
->fetchAll();
}