call target's checkAction() method for all kind of actions

This commit is contained in:
Helmut Merz 2012-05-23 08:04:52 +02:00
parent a2f8410496
commit 24966cefa7

View file

@ -564,7 +564,8 @@ class NodeView(BaseView):
actions = dict(portlet=getPortletActions) actions = dict(portlet=getPortletActions)
def checkAction(self, name, category, target): def checkAction(self, name, category, target):
if name in ('create_resource',) and target is not None: #if name in ('create_resource',) and target is not None:
if target is not None:
return target.checkAction(name, category, target) return target.checkAction(name, category, target)
return super(NodeView, self).checkAction(name, category, target) return super(NodeView, self).checkAction(name, category, target)