Commit 50a3d68b authored by Jérome Perrin's avatar Jérome Perrin

alarm: use unrestrictedSearchResults to getLastActiveProcess

This API is not supposed to take into account security,
unrestrictedSearchResults is usually a bit faster
parent a8036730
......@@ -357,7 +357,7 @@ Alarm Tool Node: %s
limit = 1
else:
limit = self.isActive() and 2 or 1
active_process_list = self.getPortalObject().portal_catalog(
active_process_list = self.getPortalObject().portal_catalog.unrestrictedSearchResults(
portal_type='Active Process', limit=limit,
sort_on=(('creation_date', 'DESC'),
('id', 'DESC', 'UNSIGNED'),),
......
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