* Remove unused param.

This commit is contained in:
caoyanyi
2022-01-24 06:23:17 +00:00
parent 19af621cdd
commit 49f393a684
2 changed files with 10 additions and 11 deletions
+2 -3
View File
@@ -2750,17 +2750,16 @@ class gitlabModel extends model
* Check user access.
*
* @param int $gitlabID
* @param int $openID
* @param int $projectID
* @param object $project
* @param string $maxRole
* @access public
* @return bool
*/
public function checkUserAccess($gitlabID, $openID = 0, $projectID = 0, $project = null, $groupIDList = array(), $maxRole = 'maintainer')
public function checkUserAccess($gitlabID, $projectID = 0, $project = null, $groupIDList = array(), $maxRole = 'maintainer')
{
if($project == null) $project = $this->apiGetSingleProject($gitlabID, $projectID);
if(!$openID or !isset($project->id)) return false;
if(!isset($project->id)) return false;
$accessLevel = $this->config->gitlab->accessLevel[$maxRole];