Skip to content

Commit

Permalink
Add entity type lookup when checking user access
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinphippsstfc authored and MRichards99 committed Oct 2, 2024
1 parent b47391a commit 6eed052
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def is_user_authorised_to_see_entity_id(self, client):
ReaderQueryHandler.entity_filter_check[self.entity_type],
self.where_filter_entity_id,
)
access_query = ICATQuery(client, self.entity_type)
access_query = ICATQuery(
client,
ReaderQueryHandler.entity_type_check[self.entity_type],
)
id_check = PythonICATWhereFilter("id", self.where_filter_entity_id, "eq")
access_filter_handler = FilterOrderHandler()
access_filter_handler.manage_icat_filters([id_check], access_query.query)
Expand Down

0 comments on commit 6eed052

Please sign in to comment.