Skip to content

Commit 32689d9

Browse files
committed
Remove authorisation constraint for discount and access code list
1 parent 638f757 commit 32689d9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/api/access_codes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def before_get(self, args, kwargs):
129129
raise UnprocessableEntity({'source': ''},
130130
"Please verify your permission")
131131

132-
decorators = (jwt_required, api.has_permission('is_coorganizer', fetch='event_id',
132+
decorators = (api.has_permission('is_coorganizer', fetch='event_id',
133133
fetch_as="event_id", model=AccessCode, methods="PATCH"),
134134
api.has_permission('is_coorganizer_but_not_admin', fetch='event_id',
135135
fetch_as="event_id", model=AccessCode, methods="DELETE"),)

app/api/discount_codes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ def before_get(self, args, kwargs):
391391
raise UnprocessableEntity({'source': ''},
392392
"Please verify your permission")
393393

394-
decorators = (jwt_required,)
395394
schema = DiscountCodeSchemaEvent
396395
data_layer = {'session': db.session,
397396
'model': DiscountCode}

0 commit comments

Comments
 (0)