Skip to content

Commit

Permalink
[FIX] Access rights
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonnerue committed Jan 24, 2025
1 parent 42d551e commit 0e847ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multisearch_field/monkeypatching.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
def search(self, domain, offset=0, limit=None, order=None, count=False):
"""Override of the Python method to remove the dependency of the unit
fields"""
if self.env["ir.model.access"].check_access_rights("read", raise_exception=False):
list_separator = self.env["ir.config_parameter"].get_param(
if self.check_access_rights("read"):
list_separator = self.env["ir.config_parameter"].sudo().get_param(
"multi_search_separator"
)
else:
Expand Down

0 comments on commit 0e847ba

Please sign in to comment.