* Modify gitlab access check.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user