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 50d141e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/permissions/permission_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,10 @@ def get_object_id_from_base_permission_filter(
object_ids.update(
list(for_model.objects.filter(group_filter).values_list("id", flat=True))
)
if settings.IS_RBAC_INSTALLED:
if settings.IS_RBAC_INSTALLED: # pragma: no cover
role_filter = get_role_permission_filter(
user, for_model, permission_key, allow_admin, tag_ids
)

object_ids.update(
list(for_model.objects.filter(role_filter).values_list("id", flat=True))
)
Expand Down

0 comments on commit 50d141e

Please sign in to comment.