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
Steps to Reproduce
- Make a PATCH Call to /tasks/self/:taskId with body as status "AVAILABLE"
Severity/Priority
Additional Information
[Include any additional context, logs, or details that might be helpful in addressing the issue.]
Checklist
Thank you for contributing to our project! We appreciate your help in improving it.