From 9eb59fa8a1361e99a99b087fe1a1af5b881658c7 Mon Sep 17 00:00:00 2001 From: Bhumika Trivedi Date: Thu, 9 Aug 2018 12:26:01 +0530 Subject: [PATCH] [FIX]: Fix issue for login user helpdesk issue creation --- addons/website_helpdesk/controllers/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/website_helpdesk/controllers/main.py b/addons/website_helpdesk/controllers/main.py index 46a34cde..583159e9 100644 --- a/addons/website_helpdesk/controllers/main.py +++ b/addons/website_helpdesk/controllers/main.py @@ -9,7 +9,7 @@ from flectra.addons.portal.controllers.portal import pager as portal_pager class HelpdeskTicket(http.Controller): - @http.route(['/helpdesk-form'], type='http', auth='public', website=True) + @http.route(['/helpdesk-form'], type='http', auth='user', website=True) def helpdesk_issue_form(self, **post): issue_type = request.env['issue.type'].sudo().search([]) team_ids = request.env['helpdesk.team'].sudo().search([]) @@ -24,7 +24,7 @@ class HelpdeskTicket(http.Controller): }) return request.render('website_helpdesk.helpdesk_form', post) - @http.route(['/issue-submitted'], type='http', auth='public', + @http.route(['/issue-submitted'], type='http', auth='user', website=True) def issue_submitted(self, **post): attachment_obj = request.env['ir.attachment'] @@ -43,7 +43,7 @@ class HelpdeskTicket(http.Controller): @http.route( ['/helpdesk-form/issue_description/' - ], type='json', auth="public", methods=['POST'], website=True) + ], type='json', auth="user", methods=['POST'], website=True) def issue_description(self, issue_type_id, **kw): domain = [] if issue_type_id: