Skip to content

Commit

Permalink
Re-apply patches from develop to grave-valet
Browse files Browse the repository at this point in the history
* Here was the original patch: 55aa055
* This commit only applies the patch to `_get_authenticated_resource()`
  • Loading branch information
cslzchen committed Oct 4, 2024
1 parent 1ef6414 commit 266a115
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/base/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ def _get_authenticated_resource(resource_id):
if resource.deleted:
raise HTTPError(http_status.HTTP_410_GONE, message='Resource has been deleted.')

if getattr(resource, 'is_retracted', False):
raise HTTPError(http_status.HTTP_410_GONE, message='Resource has been retracted.')

return resource


Expand Down

0 comments on commit 266a115

Please sign in to comment.