feat: set preferred role on login via get parameter

This commit is contained in:
Björn Fromme committed 2024-02-14 15:56:38 +01:00
1 parent 2cb4fa1933
commit f32cfcd9f2
5 files changed
+27 -15

No files matched your search

+1 -1
View File
@@ -176,7 +176,7 @@ class User implements UserInterface, TimestampableEntityInterface
if ($this->hasRole('ROLE_ADMIN')) {
return 'app_admin_index';
} elseif ($this->hasRole('ROLE_MANAGER')) {
return 'app_admin_index';
return 'app_manager_index';
} elseif ($this->hasRole('ROLE_HOUSE_MANAGER')) {
return 'app_house_manager_index';
} else {