From 29ec845109451e3ef7ba6593f522c1c2988fbcd8 Mon Sep 17 00:00:00 2001 From: "Thomas Lefebvre (thle)" Date: Mon, 5 Dec 2022 07:54:23 +0000 Subject: [PATCH] [FIX] onboarding: modify access rights for onboarding model Steps to reproduce: - install Calendar and Appointments apps; - give "Access Rights" for administration to a user; - go to calendar app with this user. Issue: The user does not have access to the calendar. Cause: The user has no access rights for the onboarding model. Solution: Check that the user belongs to the "group_system" group in the onboarding model controller. opw-3083014 closes odoo/odoo#107514 X-original-commit: fa7dc387154c65ef07af1f903fa25ca5d2e890f9 Signed-off-by: Arnaud Joset --- addons/onboarding/controllers/onboarding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/onboarding/controllers/onboarding.py b/addons/onboarding/controllers/onboarding.py index 30c0f189459..cffaf43368b 100644 --- a/addons/onboarding/controllers/onboarding.py +++ b/addons/onboarding/controllers/onboarding.py @@ -8,7 +8,7 @@ from odoo.http import request class OnboardingController(http.Controller): @http.route('/onboarding/', auth='user', type='json') def get_onboarding_data(self, route_name=None): - if not request.env.is_admin(): + if not request.env.user.has_group('base.group_system'): return {} onboarding = request.env['onboarding.onboarding'].search([('route_name', '=', route_name)])