Skip to content

Commit 4489a95

Browse files
authored
Fix: Expired orders can now be deleted (fossasia#5570)
1 parent 8f63f56 commit 4489a95

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/api/orders.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,7 @@ def before_delete_object(self, order, view_kwargs):
315315

316316
# This is to ensure that the permissions manager runs and hence changes the kwarg from order identifier to id.
317317
decorators = (jwt_required, api.has_permission(
318-
'auth_required', methods="PATCH,DELETE", fetch="user_id", model=Order),)
319-
318+
'auth_required', methods="PATCH,DELETE", model=Order),)
320319
schema = OrderSchema
321320
data_layer = {'session': db.session,
322321
'model': Order,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy