Attachments

  • Alan Bennett
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 year 1 month ago #156549 by Alan Bennett
Attachments was created by Alan Bennett
I want to disable the adding of attachments by the end user but allow them to be added by staff who log in via the site to progress the ticket.

How is this achieved?

NEW FEATURE REQUEST - configure attachment capabilities by category instead of it being a global setting :)

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #156551 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Attachments
Hi Allan

This is not supported, so the only way to have it is perform some customization to the code to disable it for users

Try to look at the file components/com_helpdeskpro/View/common/tmpl/ticket_add_comment.php, find this line of code:
Code:
if ($config->enable_attachment)

Change it to
Code:
if ($config->enable_attachment && $role !== 'user')

Then check to see if it works

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Alan Bennett
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 year 1 month ago #156557 by Alan Bennett
Replied by Alan Bennett on topic Attachments
No joy so far.

What is classified as user/ I am seeing attachment capability still.

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #156578 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Attachments
Submit a support ticket sending me super admin account of your site and link to the page

I will help with this modification

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc