Commit aff49bdd authored by Romain Courteaud's avatar Romain Courteaud

Only handle validated Computer and Software Instance

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42500 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6aaf55db
...@@ -67,6 +67,7 @@ def getUserByLogin(portal, login): ...@@ -67,6 +67,7 @@ def getUserByLogin(portal, login):
result = portal.portal_catalog.unrestrictedSearchResults( result = portal.portal_catalog.unrestrictedSearchResults(
select_expression='reference', select_expression='reference',
portal_type=["Computer", "Software Instance"], portal_type=["Computer", "Software Instance"],
validation_state="validated",
reference=dict(query=login, key='ExactMatch')) reference=dict(query=login, key='ExactMatch'))
# XXX: Here, we filter catalog result list ALTHOUGH we did pass # XXX: Here, we filter catalog result list ALTHOUGH we did pass
# parameters to unrestrictedSearchResults to restrict result set. # parameters to unrestrictedSearchResults to restrict result set.
......
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