Commit eb2b27ff authored by 's avatar

Merged wrong permission name fix from 2.2 branch

parent 467ad9e3
...@@ -249,7 +249,7 @@ class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent): ...@@ -249,7 +249,7 @@ class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent):
) )
__ac_permissions__=( __ac_permissions__=(
('Add Documents, Files, and Images', ('addTopicForm', 'addTopic')), ('Add Documents, Images, and Files', ('addTopicForm', 'addTopic')),
) )
def __init__(self, id='Help', title=''): def __init__(self, id='Help', title=''):
...@@ -305,7 +305,12 @@ class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent): ...@@ -305,7 +305,12 @@ class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent):
for topic in self.objectValues('Help Topic'): for topic in self.objectValues('Help Topic'):
if hasattr(topic,'isAPIHelpTopic') and topic.isAPIHelpTopic: if hasattr(topic,'isAPIHelpTopic') and topic.isAPIHelpTopic:
apitopics.append(topic) apitopics.append(topic)
elif topic.getId()[:5]=='dtml-': else:
if callable(topic.id):
id=topic.id()
else:
id=topic.id
if id[:5]=='dtml-':
dtmltopics.append(topic) dtmltopics.append(topic)
else: else:
topics.append(topic) topics.append(topic)
......
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