No applications displayed in menu for all users when one of the user has no rights to see them
Steps to repoduce :
- Connect with a user that can see applications in menu : applications are displayed
✅ - Connect with a user that cannot see applications in menu (because no access to any of them) : no applications are displayed
✅ - Connect with a user that can see applications in menu : no applications are displayed
⛔
This is a regression linked to issue #2833 (closed)
The problem is in the code of Lemonldap::NG::Portal::Main::Menu
# Display noApp message
$res{NO_APP_ALLOWED} = $self->noApp;
Of course storing the state of applications visibility in a class parameter is wrong, as this is linked to request context.