django-helpdesk
django-helpdesk copied to clipboard
How can I prevent the editing of the ticket for active users?
HELPDESK_SHOW_EDIT_BUTTON_FOLLOW_UP = False, and another commands don't work. How can I prevent the editing of the ticket for active users? I need to make editing possible only for superuser and my chosen users.
Hmm, as far as I know HELPDESK_SHOW_EDIT_BUTTON_FOLLOW_UP = False
should work to prevent it from being displayed to any user. Let me investigate. Or feel free to send a PR!
The permissions for users are a bit of a known problem and need an overhaul, so it is possible what you're asking may not quite be possible. I'm planning to take a look at permissions for the next release.
Oh i see you mean editing the ticket itself (description, etc.) and not follow ups, that's why that setting doesn't change anything. This would be a new feature once permissions are worked out.
So basically an option that disables the user to edit/reply the ticket after the creation.
It is something that we want to extend like, after closing it is not possible to reply? Or similar things?
Try setting HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE
to False
https://github.com/django-helpdesk/django-helpdesk/blob/761b91d2fe55d42ff767b8dc617925425f27fa6f/helpdesk/views/staff.py#L504