Skip to content

Inactive tasks tab ignores task-level permissions #476

Closed

Description

@caseysoftware

modules/tasks/vw_tasks_inactive.php (L11) lists a project's inactive tasks with:

$tasks = $task->loadAll('task_start_date, task_end_date', 'task_status = -1 AND task_project = '. $project_id);

BaseObject::loadAll() applies no permissions (only CProject overrides it), so tasks that are denied to the user at item level still appear on the project's Inactive Tasks tab, unlike the active task list. $project_id (a global) is also concatenated into the WHERE clause.

Fix: build the list with CTask::getAllowedRecords()/setAllowedSQL() for the current user, and cast $project_id to int.

Found by reading the code on dev-5.0.0 @ 179b4eaf; not yet reproduced on a running install.

Fix before Phase 0 of the REST API and MCP server proposal (#471).

Activity

  1. added
    api
    on Oct 23, 2026
  2. added a commit that references this issue on Oct 24, 2026
    9a58630
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

    apimodule:taskssecurity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions