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

@@ -71,7 +71,8 @@ class EditController extends AbstractController
));
}
// 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.
$assignableManagers = [];
if ($this->isGranted('ROLE_GROUPS_ADMIN')) {
$assignableManagers = $this->userRepo->findGroupsStaff();