Commit b7324918 authored by Vincent Pelletier's avatar Vincent Pelletier

Add a warning about suspicious code.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15480 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent efc9413d
......@@ -475,6 +475,8 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
"deprecated. Please update your catalog "\
"business template."
if allowedRolesAndUsers:
# XXX: What with this string transformation ?! Souldn't it be done in
# dtml instead ?
allowedRolesAndUsers = ["'%s'" % (role, ) for role in allowedRolesAndUsers]
security_uid_list = [x.uid for x in method(security_roles_list = allowedRolesAndUsers)]
else:
......
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