Commit fae04b68 authored by Vincent Pelletier's avatar Vincent Pelletier

Woops, used the wrong constant.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15541 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b597e3b0
......@@ -242,7 +242,7 @@ def getWorklistListQuery(grouped_worklist_dict, securityQueryHook):
total_criterion_id_list.sort(criterion_id_cmp)
query = generateNestedQuery(priority_list=total_criterion_id_list, criterion_dict=total_criterion_id_dict, securityQueryHook=securityQueryHook)
assert query is not None
if SECURITY_COLUMN_ID not in total_criterion_id_list:
if SECURITY_PARAMETER_ID not in total_criterion_id_list:
# This request has no defined local_roles, so we must use default security query
query = ComplexQuery(query, securityQueryHook(), operator='AND')
group_by_expression = ', '.join([x for x in total_criterion_id_dict.keys() if x != SECURITY_PARAMETER_ID])
......
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