Skip to content

Commit

Permalink
fix(access): use request object passed to has_object_permission
Browse files Browse the repository at this point in the history
ref: #473 #474
  • Loading branch information
jon-nfc committed Jan 18, 2025
1 parent 929c95c commit 9b40668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/access/mixins/permissions.py
Original file line number Diff line number Diff line change
@@ -278,7 +278,7 @@ def has_object_permission(self, request, view, obj):
object_organization
in view.get_permission_organizations( view.get_permission_required() )
or request.user.is_superuser
or getattr(self.request.app_settings.global_organization, 'id', 0) == int(object_organization)
or getattr(request.app_settings.global_organization, 'id', 0) == int(object_organization)
):

return True

0 comments on commit 9b40668

Please sign in to comment.