Skip to content
Snippets Groups Projects
Commit 91560fae authored by Swapnesh Shah's avatar Swapnesh Shah Committed by GitHub
Browse files

[FIX] calendar: Allow any user to set calendar_last_notif_ack

Fixes https://github.com/odoo/odoo/issues/39358


Before this commit Internal user (With no other Rights) cannot perform any activity on Reminder Popup due to missing rights to set calendar_last_notif_ack field.
With this fix, we are now using sudo to write calendar_last_notif_ack

closes odoo/odoo#39407

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 573e5777
No related branches found
No related tags found
No related merge requests found
......@@ -69,4 +69,4 @@ class CalendarController(http.Controller):
@http.route('/calendar/notify_ack', type='json', auth="user")
def notify_ack(self, type=''):
return request.env['res.partner']._set_calendar_last_notif_ack()
return request.env['res.partner'].sudo()._set_calendar_last_notif_ack()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment