* Modify config data.
This commit is contained in:
@@ -121,3 +121,6 @@ $config->gitlab->accessLevel['reporter'] = 20;
|
||||
$config->gitlab->accessLevel['developer'] = 30;
|
||||
$config->gitlab->accessLevel['maintainer'] = 40;
|
||||
$config->gitlab->accessLevel['owner'] = 50;
|
||||
|
||||
/* Minimum compatible version. */
|
||||
$config->gitlab->minCompatibleVersion = '9.0';
|
||||
|
||||
@@ -255,7 +255,7 @@ class gitlab extends control
|
||||
|
||||
/* Verify version compatibility. */
|
||||
$result = $this->gitlab->getVersion($gitlabURL, $token);
|
||||
if(empty($result) or !isset($result->version) or (version_compare($result->version, $this->gitlab->minCompatibleVersion, '<'))) return $this->send(array('result' => 'fail', 'message' => array('url' => array($this->lang->gitlab->notCompatible))));
|
||||
if(empty($result) or !isset($result->version) or (version_compare($result->version, $this->config->gitlab->minCompatibleVersion, '<'))) return $this->send(array('result' => 'fail', 'message' => array('url' => array($this->lang->gitlab->notCompatible))));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -20,9 +20,6 @@ class gitlabModel extends model
|
||||
public $developerAccess = 30;
|
||||
public $maintainerAccess = 40;
|
||||
|
||||
/* Minimum compatible version. */
|
||||
public $minCompatibleVersion = '9.0';
|
||||
|
||||
/**
|
||||
* Get a gitlab by id.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user