Skip to content

[Bug] Farm workers can modify task assignments despite "view-only" role #272

@rmsonge

Description

@rmsonge

Users with the worker role can reassign tasks to others even when their permissions are set to view-only in the admin panel.

Steps to Reproduce:

  1. Assign worker role to UserA with view-only tasks permission.
  2. As UserA, navigate to Tasks → Reassign a task to UserB.
  3. Observe successful reassignment.

Expected Behavior:

  • Reassignment button should be disabled/hidden for view-only users.

Actual Behavior:

  • Silent permission bypass.

Environment:

  • Tania Core: v1.6.2 (Community Edition)
  • Auth: JWT

Evidence:

// API Response (should fail with 403)  
{"status": "success", "message": "Task reassigned"} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions