Skip to content

Commit

Permalink
no cover
Browse files Browse the repository at this point in the history
  • Loading branch information
gagantrivedi committed Jul 10, 2024
1 parent ebe2dfb commit 4ada29b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/permissions/permission_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,11 @@ def get_object_id_from_base_permission_filter(
list(for_model.objects.filter(group_filter).values_list("id", flat=True))
)
if settings.IS_RBAC_INSTALLED:
# pragma: no cover
role_filter = get_role_permission_filter(

Check warning on line 248 in api/permissions/permission_service.py

View check run for this annotation

Codecov / codecov/patch

api/permissions/permission_service.py#L248

Added line #L248 was not covered by tests
user, for_model, permission_key, allow_admin, tag_ids
)

# pragma: no cover
object_ids.update(

Check warning on line 252 in api/permissions/permission_service.py

View check run for this annotation

Codecov / codecov/patch

api/permissions/permission_service.py#L252

Added line #L252 was not covered by tests
list(for_model.objects.filter(role_filter).values_list("id", flat=True))
)
Expand Down

0 comments on commit 4ada29b

Please sign in to comment.