From 26e4addffce3041d7481bd3feb2d77bd2dc80108 Mon Sep 17 00:00:00 2001 From: Abhinav Khare Date: Sat, 26 Jan 2019 12:24:59 +0800 Subject: [PATCH] Disable registrat constraint to update attendees Frontend follows a flow where non registrar user has to edit an attendee while placing an order. --- app/api/attendees.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/attendees.py b/app/api/attendees.py index 18cfcf0353..774137ca4f 100644 --- a/app/api/attendees.py +++ b/app/api/attendees.py @@ -167,8 +167,8 @@ def before_update_object(self, obj, data, kwargs): :param kwargs: :return: """ - if not has_access('is_registrar', event_id=obj.event_id): - raise ForbiddenException({'source': 'User'}, 'You are not authorized to access this.') +# if not has_access('is_registrar', event_id=obj.event_id): +# raise ForbiddenException({'source': 'User'}, 'You are not authorized to access this.') if 'device_name_checkin' in data: if 'checkin_times' not in data or data['checkin_times'] is None: