mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-01 11:19:34 -05:00
Controller: remove outdated permission code
This commit is contained in:
parent
191edb794c
commit
549c07b457
1 changed files with 1 additions and 22 deletions
|
|
@ -197,29 +197,8 @@ class Controller extends ModuleController
|
|||
|
||||
protected function loadBpConfig()
|
||||
{
|
||||
$name = $this->params->get('config');
|
||||
$storage = $this->storage();
|
||||
if ($this->hasPermission('businessprocess/create')) {
|
||||
$this->view->processList = array_merge(
|
||||
$storage->listProcesses(),
|
||||
array('.new' => $this->translate('Create new configuration'))
|
||||
);
|
||||
} else {
|
||||
$this->view->processList = $storage->listProcesses();
|
||||
}
|
||||
|
||||
// No process found? Go to welcome page
|
||||
if (empty($this->view->processList)) {
|
||||
$this->redirectNow('businessprocess');
|
||||
}
|
||||
|
||||
$name = $this->params->get(
|
||||
'config',
|
||||
key($this->view->processList)
|
||||
);
|
||||
|
||||
if ($name === '.new') {
|
||||
$this->redirectNow('businessprocess/process/create');
|
||||
}
|
||||
|
||||
if (! $storage->hasProcess($name)) {
|
||||
$this->httpNotFound(
|
||||
|
|
|
|||
Loading…
Reference in a new issue