Skip to content

Allow only a group of agents to have a assign permission#3214

Open
Shindhu-Ramaswamy wants to merge 2 commits intofrappe:developfrom
Shindhu-Ramaswamy:fix/assignment-permission01
Open

Allow only a group of agents to have a assign permission#3214
Shindhu-Ramaswamy wants to merge 2 commits intofrappe:developfrom
Shindhu-Ramaswamy:fix/assignment-permission01

Conversation

@Shindhu-Ramaswamy
Copy link
Copy Markdown

Currently, any user can assign or remove assignees from a ticket.
There is no restriction based on roles.

This can cause issues because:

Unauthorized users can change ticket assignments
No proper control over who can manage tickets

For that i came up with the solution:

I added a role-based check to control ticket assignment.

Backend
Created a method can_assign_ticket() to check user roles
Allowed roles:
Ticket Assigner
Agent Manager
System Manager
Added validation in remove_assignments:
If user does not have permission → throw error
Frontend
Updated AssignTo.vue
If user has permission:
Show assign UI
If not:
Show assignee list as read-only

#issue #2488

@Shindhu-Ramaswamy Shindhu-Ramaswamy changed the title Allow only group of agents to assign permission Allow only a group of agents to have a assign permission Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant