Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-milea committed Oct 8, 2024
1 parent 8733333 commit 9ef5386
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/syft/src/syft/service/sync/diff_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,9 @@ def from_batch_decision(
)
]
}
if diff.obj_type in [Job, SyftLog, ActionObject, Request]:
if diff.obj_type in [Job, SyftLog, Request] or issubclass(
diff.obj_type, ActionObject
):
new_permissions_high_side = {
diff.obj_type: [
ActionObjectPermission(
Expand Down
4 changes: 3 additions & 1 deletion packages/syft/src/syft/service/sync/sync_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ def sync_items(
for permission in permission_list:
if permission.uid in item_ids:
continue
if obj_type not in [Job, SyftLog, ActionObject, Request]:
if obj_type not in [Job, SyftLog, Request] and not issubclass(
obj_type, ActionObject
):
raise SyftException(
public_message="Permission for object type not supported!"
)
Expand Down

0 comments on commit 9ef5386

Please sign in to comment.