* Adjust priv package of devops.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user