* Adjust priv package of devops.

This commit is contained in:
zhaoke
2023-09-01 09:29:55 +08:00
parent 72cd4f7d2a
commit 6200f2b734
18 changed files with 89 additions and 149 deletions
+1
View File
@@ -20,6 +20,7 @@ class gogs extends control
{
parent::__construct($moduleName, $methodName);
if(!commonModel::hasPriv('space', 'browse')) $this->loadModel('common')->deny('space', 'browse', false);
/* This is essential when changing tab(menu) from gogs to repo. */
/* Optional: common::setMenuVars('devops', $this->session->repoID); */
if($this->app->rawMethod != 'binduser') $this->loadModel('ci')->setMenu();