feat: set preferred role on login via get parameter

This commit is contained in:
Björn Fromme
2024-02-14 15:56:38 +01:00
parent 2cb4fa1933
commit f32cfcd9f2
5 changed files with 27 additions and 15 deletions
+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 {