Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
This repository was archived by the owner on May 29, 2026. It is now read-only.

[HIGH] H5: isUserInGroup permanently broken — undefined variable makes all admin checks return false #337

Description

@rubenvdlinde

Severity: HIGH

Location: lib/Controller/AangebodenGebruikController.php lines 466–511, specifically line 483

Description:
isUserInGroup references a bare $groupManager variable that has never been declared in scope. PHP raises an "Undefined variable" E_WARNING which is caught and causes the method to unconditionally return false. As a result:

  • Every isAmbtenaar() and isAdmin() check returns false.
  • Admins receive 403 responses from routes that gate on these helpers.
  • Organisation filters that rely on these helpers are silently dropped, returning unfiltered data to non-admin users.

Suggested fix:
Replace $groupManager on line 483 with $this->groupManager.


Source: deep team-reviewer pass 2026-05-27

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions