Commit 40b87d1d authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5LoginUserManager: Tolerate id=None.

parent cb2a7c63
...@@ -201,7 +201,7 @@ class ERP5LoginUserManager(BasePlugin): ...@@ -201,7 +201,7 @@ class ERP5LoginUserManager(BasePlugin):
# Short-cut "System Processes" as not being searchable by user_id. # Short-cut "System Processes" as not being searchable by user_id.
# This improves performance in proxy-role'd execution by avoiding an # This improves performance in proxy-role'd execution by avoiding an
# sql query expected to find no user. # sql query expected to find no user.
id = [x for x in id if x != SYSTEM_USER_USER_NAME] id = [x for x in id or () if x != SYSTEM_USER_USER_NAME]
if id: if id:
if exact_match: if exact_match:
requested = set(id).__contains__ requested = set(id).__contains__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment