Commit 93a44273 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 b16d0c48
......@@ -358,7 +358,7 @@ Alarm Tool Node: %s
# active" active process, but if the currently active active process is not yet indexed, we
# this method does not return the latest active process, but the previous one.
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