From 1bd5e3780fb6d08c87efdca406393bdcfc00747e Mon Sep 17 00:00:00 2001 From: qmo-odoo Date: Wed, 16 Sep 2020 08:07:34 +0000 Subject: [PATCH] [FIX] website_event_meet: Allow room creation for unpublished events Allow creation of room for unpublished events for base users so that they can prepare all their rooms before releasing their event in the wild. LINKS: TaskID:2339835 closes odoo/odoo#58141 Pr: #57799 X-original-commit: 4cecd66821a1f4493fe321b9886df51d946fd779 Signed-off-by: Thibault Delavallee (tde) --- addons/website_event_meet/controllers/community.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_event_meet/controllers/community.py b/addons/website_event_meet/controllers/community.py index 6a3d17e3043..5e7191a7950 100644 --- a/addons/website_event_meet/controllers/community.py +++ b/addons/website_event_meet/controllers/community.py @@ -77,7 +77,7 @@ class WebsiteEventMeetController(EventCommunityController): @http.route("/event//meeting_room_create", type="http", auth="public", methods=["POST"], website=True) def create_meeting_room(self, event, **post): - if not event or not event.can_access_from_current_website() or not event.is_published or not event.meeting_room_allow_creation: + if not event or not event.can_access_from_current_website() or (not event.is_published and not request.env.user.user_has_groups('base.group_user')) or not event.meeting_room_allow_creation: raise Forbidden() name = post.get("name")