Skip to content

Commit

Permalink
create abstract method for get_search_ui_permissions_bulk in perm_bac…
Browse files Browse the repository at this point in the history
…kend, re #11708
  • Loading branch information
whatisgalen committed Jan 2, 2025
1 parent 4dec2b6 commit 42db636
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arches/app/utils/permission_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ def get_permission_search_filter(self, user): ...
@abstractmethod
def get_search_ui_permissions(self, user, search_result, groups=None): ...

@abstractmethod
def get_search_ui_permissions_bulk(self, user, search_results, groups=None): ...

@abstractmethod
def get_default_permissions(user_or_group, model): ...

Expand Down Expand Up @@ -397,6 +400,12 @@ def get_search_ui_permissions(user, search_result, groups=None):
)


def get_search_ui_permissions_bulk(user, search_results, groups=None):
return _get_permission_framework().get_search_ui_permissions_bulk(
user, search_results, groups
)


def get_default_permissions(
user_or_group,
model,
Expand Down

0 comments on commit 42db636

Please sign in to comment.