When you defined a kiosk environment, disabling some modules to user, disabled module were always visible in menus.
However, if you open the view of these menu, a blank view will display because modules are disabled.
This patch solves it and displays only enabled module to user.