mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
GroupController: Do not throw Zend_Controller_Action_Exception (404)
Use Controller::httpNotFound() instead. refs #8826
This commit is contained in:
parent
605ae3d802
commit
bd07f78d94
@ -135,10 +135,7 @@ class GroupController extends Controller
|
|||||||
if ($name !== null) {
|
if ($name !== null) {
|
||||||
$config = Config::app('groups');
|
$config = Config::app('groups');
|
||||||
if (! $config->hasSection($name)) {
|
if (! $config->hasSection($name)) {
|
||||||
throw new Zend_Controller_Action_Exception(
|
$this->httpNotFound(sprintf($this->translate('User group backend "%s" not found'), $name));
|
||||||
sprintf($this->translate('User group backend "%s" not found'), $name),
|
|
||||||
404
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
$backend = UserGroupBackend::create($name, $config->getSection($name));
|
$backend = UserGroupBackend::create($name, $config->getSection($name));
|
||||||
if ($interface && !$backend instanceof $interface) {
|
if ($interface && !$backend instanceof $interface) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user