mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-29 14:59:27 -05:00
Controller: 404 on missing process or perms
This commit is contained in:
parent
3332a06792
commit
311fd54552
1 changed files with 7 additions and 0 deletions
|
|
@ -110,6 +110,13 @@ class Controller extends ModuleController
|
|||
$this->redirectNow('businessprocess/process/create');
|
||||
}
|
||||
|
||||
if (! $storage->hasProcess($name)) {
|
||||
$this->httpNotFound(
|
||||
$this->translate('No such process config: "%s"'),
|
||||
$name
|
||||
);
|
||||
}
|
||||
|
||||
$modifications = $this->session()->get('modifications', array());
|
||||
if (array_key_exists($name, $modifications)) {
|
||||
$bp = $storage->loadFromString($name, $modifications[$name]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue