You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pages of an inactive module (or one the user can't access) still load by URL #547
index.php only checks that a module is active and accessible for dosql posts and a=do_* actions (added for #463). Normal page loads don't, as the existing TODO says ("We should validate that the module identified by $m is actually installed & active").
Reproduce (master 8727ad5c)
System Admin › View Modules: turn an add-on off (I used Notebook).
Open ?m=notebook. The module's list page still renders, for admin and for a Project worker user.
Core modules check canAccess() in their own index.php, but an add-on that forgets to is open to every logged-in user, even with no permission on it.
Suggested fix
Before require $module_file, redirect to ACCESS_DENIED when !$AppUI->isActiveModule($m) || !canAccess($m), keeping the existing exceptions (public, and the self-service pages users reach for their own record).
Activity
Only load pages of active modules the user can access