* 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
+5 -1
View File
@@ -702,7 +702,10 @@ class gitlab extends control
$project->isMaintainer = $this->gitlab->checkUserAccess($gitlabID, $project->id, $project, $groupIDList, 'maintainer');
}
$gitlab = $this->gitlab->getByID($gitlabID);
$gitlab = $this->gitlab->getByID($gitlabID);
$repos = $this->loadModel('repo')->getGitLabRepoList($gitlabID);
$repoPairs = array();
foreach($repos as $repo) $repoPairs[$repo->path] = $repo->id;
$this->view->gitlab = $gitlab;
$this->view->keyword = urldecode(urldecode($keyword));
@@ -711,6 +714,7 @@ class gitlab extends control
$this->view->gitlabID = $gitlabID;
$this->view->gitlabProjectList = $result['projects'];
$this->view->orderBy = $orderBy;
$this->view->repoPairs = $repoPairs;
$this->display();
}