* Adjust priv of gitlab and sonarqube.

This commit is contained in:
zhaoke
2023-09-11 17:44:54 +08:00
parent 1aa8a4a5c6
commit 29cf1eb97e
11 changed files with 69 additions and 20 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class gitlab extends control
if(!commonModel::hasPriv('space', 'browse')) $this->loadModel('common')->deny('space', 'browse', false);
if(!in_array($methodName, array('browseproject', 'browsegroup', 'managegroupmembers', 'browseuser', 'browsebranch', 'manageprojectmembers', 'managebranchpriv', 'managetagpriv', 'browsetag')))
if(!in_array(strtolower(strtolower($this->methodName)), array('browseproject', 'browsegroup', 'browseuser', 'browsebranch', 'browsetag')))
{
if(!commonModel::hasPriv('instance', 'manage')) $this->loadModel('common')->deny('instance', 'manage', false);
}