feat(access): During permission checking also capture Http404

ref: #442 #456
This commit is contained in:
2024-12-28 18:06:22 +09:30
parent a07dee370c
commit 08b113b1ba
2 changed files with 9 additions and 0 deletions

View File

@ -240,6 +240,13 @@ class OrganizationPermissionMixin(
print(traceback.format_exc())
except centurion_exceptions.Http404 as e:
# This exception genrally means that the user is not in the same
# organization as the object as objects are filtered to users
# organizations ONLY.
pass
except centurion_exceptions.ObjectDoesNotExist as e:
# This exception genrally means that the user is not in the same
# organization as the object as objects are filtered to users