Skip to content

Pages of an inactive module (or one the user can't access) still load by URL #547

Closed

Description

@caseysoftware

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)

  1. System Admin › View Modules: turn an add-on off (I used Notebook).
  2. 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

  1. added a commit that references this issue on Nov 11, 2026
    a690123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions