diff --git a/bhjwt/assertions/main.py b/bhjwt/assertions/main.py index 0a59f2c..98f74bf 100644 --- a/bhjwt/assertions/main.py +++ b/bhjwt/assertions/main.py @@ -27,7 +27,7 @@ def _has_permission_to_data_resource(self, data_resource_id: str, permission: st "brighthive-data-resource-claims" in self.claims and self.claims["brighthive-data-resource-claims"].get(data_resource_id) is not None - and permission + and data_perm in self.claims["brighthive-data-resource-claims"] .get(data_resource_id) .get("permissions", [])