Commit 007f46e5 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: do not sort security base category when generating local roles

Otherwise, it is not possible to ensure source_section/function and destination/function generate the same local role
parent 3b7282c5
......@@ -41,7 +41,8 @@ getCategoryValue = portal.portal_categories.getCategoryValue
# but also prevents some human mistake to break everything by creating site_function instead of function_site
if category_order not in (None, ''):
category_order = list(category_order)
category_order.sort()
# Do not sort, otherwise, it is not possible to ensure source_section/function and destination/function generate the same local role
#category_order.sort()
else:
category_order = []
......
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