Commit 48454fc0 authored by Ivan Tyagov's avatar Ivan Tyagov

When building a predicate do not blindly access category as it might not be...

When building a predicate do not blindly access category as it might not be accessible for current user.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23064 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8af77e32
......@@ -233,7 +233,7 @@ class Predicate(XMLObject, Folder):
for category in self.getMembershipCriterionCategoryList():
base_category = category.split('/')[0] # Retrieve base category
if membership_dict.has_key(base_category):
category_value = portal_categories.resolveCategory(category)
category_value = portal_categories.resolveCategory(category, None)
if category_value is not None:
table_alias = "single_%s_%s" % (table, base_category)
from_table_dict[table_alias] = 'category'
......
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