* Fix bug#18969

This commit is contained in:
zenggang
2022-01-25 08:53:55 +00:00
parent 48146100f6
commit 7c2443dc66
+8
View File
@@ -910,6 +910,14 @@ class mr extends control
$projects[] = $project;
}
$groupIDList = array(0 => 0);
$groups = $this->gitlab->apiGetGroups($gitlabID, 'name_asc', $this->config->gitlab->accessLevel['developer']);
foreach($groups as $group) $groupIDList[] = $group->id;
foreach($projects as $key => $project)
{
if($this->gitlab->checkUserAccess($gitlabID, 0, $project, $groupIDList, 'developer') == false) unset($projects[$key]);
}
if(!$projects) return $this->send(array('message' => array()));
$options = "<option value=''></option>";