Commit 2bff6326 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

ERP5Security.ERP5LoginUserManager: specify fallback login portal type list.

parent 6a84b616
......@@ -140,8 +140,10 @@ class ERP5LoginUserManager(BasePlugin):
sort_by=None, max_results=None, login_portal_type=None, **kw):
""" See IUserEnumerationPlugin.
"""
unrestrictedSearchResults = self.getPortalObject(
).portal_catalog.unrestrictedSearchResults
portal = self.getPortalObject()
if login_portal_type is None:
login_portal_type = portal.getPortalLoginTypeList()
unrestrictedSearchResults = portal.portal_catalog.unrestrictedSearchResults
searchUser = lambda **kw: unrestrictedSearchResults(
select_list=('reference', ),
portal_type='Person',
......
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