Controller: 404 on missing process or perms

This commit is contained in:
Thomas Gelf 2015-11-23 00:44:14 +01:00
parent 3332a06792
commit 311fd54552

View file

@ -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]);