#68232Disallow unauthorized module access
Description
Changing the module dispatcher url from mod.php to index.php introduced a potential security leak,
as some modules could be called even with no user authenticated.
Fix and harden the checks in the module dispatcher to avoid that.