Skip to content

Enhancement : Restrict Task Status Change to Available for Task assigned to Users #1776

@heyrandhir

Description

@heyrandhir

Issue Description

A regular user assigned with a task currently has the ability to change the task status to available, which can lead to unintended consequences. This ticket aims to restrict the task status modification capability for assigned users.

Expected Behavior

User will not be allowed to change their task status to AVAILABLE. Only a super user can change the status to available in that case the assignee will be removed and set to null

Current Behavior

A regular user assigned with a task currently has the ability to change the task status to available

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

  1. Make a PATCH Call to /tasks/self/:taskId with body as status "AVAILABLE"

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

[Include any additional context, logs, or details that might be helpful in addressing the issue.]

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Thank you for contributing to our project! We appreciate your help in improving it.

Metadata

Metadata

Assignees

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