Skip to content

Commit

Permalink
temp commit, please ammend ...
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed Oct 3, 2024
1 parent 1ef6414 commit ee945a4
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 ee945a4

Please sign in to comment.