chore: correct stale role_hierarchy comments

This commit is contained in:
Björn Fromme committed 2026-08-12 17:47:01 +02:00
1 parent 6af8044f7c
commit 490acc2e8b
3 files changed
+6 -3

No files matched your search

@@ -32,7 +32,8 @@ class IndexController extends AbstractController
#[Route('/admin/accommodation-booking', name: 'app_admin_accommodationbooking')]
public function index(Request $request): Response
{
// ROLE_ADMIN inherits ROLE_GROUPS_ADMIN, so this single check covers both.
// ROLE_GROUPS_ADMIN is granted explicitly since 6c1073e4 removed it from ROLE_ADMIN's
// role_hierarchy — an administrator who needs this has to hold it in their own right.
$seesAllBookings = $this->isGranted('ROLE_GROUPS_ADMIN');
$user = $this->getUser();
$user = $user instanceof User ? $user : null;