* [task#147120] add bind user menu config.
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
global $lang, $app;
|
||||
$app->loadLang('repo');
|
||||
|
||||
$config->repo->notSetMenuVars = array('maintain', 'create', 'createrepo', 'edit', 'import');
|
||||
|
||||
$config->program = new stdclass();
|
||||
$config->program->suffix['c'] = "cpp";
|
||||
$config->program->suffix['cpp'] = "cpp";
|
||||
|
||||
@@ -78,7 +78,7 @@ class repoModel extends model
|
||||
}
|
||||
}
|
||||
|
||||
if(!in_array($this->app->methodName, array('maintain', 'create', 'createrepo', 'edit','import'))) common::setMenuVars('devops', $repoID);
|
||||
if(!in_array($this->app->methodName, $this->config->repo->notSetMenuVars)) common::setMenuVars('devops', $repoID);
|
||||
if(!session_id()) session_start();
|
||||
$this->session->set('repoID', $repoID);
|
||||
session_write_close();
|
||||
|
||||
Reference in New Issue
Block a user