Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions application/controllers/UserController.php

This file was deleted.

28 changes: 0 additions & 28 deletions application/controllers/UsergroupController.php

This file was deleted.

28 changes: 0 additions & 28 deletions application/controllers/UsergroupsController.php

This file was deleted.

28 changes: 0 additions & 28 deletions application/controllers/UsersController.php

This file was deleted.

20 changes: 4 additions & 16 deletions configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,7 @@
]);
}

if (
! array_key_exists('usergroups', $routeDenylist) // TODO: Remove with 1.3, compat only
&& ! array_key_exists('contactgroups', $routeDenylist)
) {
if (! array_key_exists('contactgroups', $routeDenylist)) {
$overviewSection->add(N_('Contact Groups'), [
'description' => $this->translate('List contact groups'),
'url' => 'icingadb/contactgroups',
Expand All @@ -385,10 +382,7 @@
]);
}

if (
! array_key_exists('users', $routeDenylist) // TODO: Remove with 1.3, compat only
&& ! array_key_exists('contacts', $routeDenylist)
) {
if (! array_key_exists('contacts', $routeDenylist)) {
$overviewSection->add(N_('Contacts'), [
'description' => $this->translate('List contacts'),
'url' => 'icingadb/contacts',
Expand Down Expand Up @@ -505,10 +499,7 @@
]);
}

if (
! array_key_exists('usergroups', $routeDenylist) // TODO: Remove with 1.3, compat only
&& ! array_key_exists('contactgroups', $routeDenylist)
) {
if (! array_key_exists('contactgroups', $routeDenylist)) {
$section->add(N_('Contact Groups'), [
'url' => 'icingadb/contactgroups',
'priority' => 70,
Expand All @@ -517,10 +508,7 @@
]);
}

if (
! array_key_exists('users', $routeDenylist) // TODO: Remove with 1.3, compat only
&& ! array_key_exists('contacts', $routeDenylist)
) {
if (! array_key_exists('contacts', $routeDenylist)) {
$section->add(N_('Contacts'), [
'url' => 'icingadb/contacts',
'priority' => 80,
Expand Down
4 changes: 4 additions & 0 deletions doc/05-Upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ If you are upgrading across multiple versions, make sure to follow the steps for

**Removed Features**

* The routes `users`, `user`, `usergroup` and `usergroups` have been removed.
* Accessing these routes will result in a 404 error.
* The corresponding values for `icingadb/denylist/routes` have no effect anymore.
* The alternatives (`contacts`, `contact` , `contactgroup` and `contactgroups`) have been available since v1.2.
* The migration widget in the top right has been removed. If you have not adjusted your navigation items,
dashboards and bookmarks to support the new filter syntax, you will need to do so manually now (see [Upgrading to
Icinga DB Web v1.1](#upgrading-to-icinga-db-web-v11) for details).
Expand Down
6 changes: 0 additions & 6 deletions library/Icingadb/Common/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ public function isPermittedRoute(string $name): bool
}, $this->getAuth()->getRestrictions('icingadb/denylist/routes'))));

if (! array_key_exists($name, $routeDenylist)) {
if ($name === 'contacts' && array_key_exists('users', $routeDenylist)) {
return false; // TODO: Remove with 1.3, compat only
} elseif ($name === 'contactgroups' && array_key_exists('usergroups', $routeDenylist)) {
return false; // TODO: Remove with 1.3, compat only
}

return true;
}

Expand Down
Loading