Commit 2210ab5e authored by Vincent Pelletier's avatar Vincent Pelletier

Fix #201. Thanks to Stefan Friese for the patch.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10003 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6a8ac762
......@@ -42,7 +42,7 @@ def CMFCoreUtils_getViewFor(obj, view='view'):
for action in actions:
if action.getId() == view or action.getCategory().endswith('_%s' % view):
if _verifyActionPermissions(obj, action):
if action.testCondition(context):
if action.testCondition(context) and action.visible:
target = action.action(context).strip()
if target.startswith('/'):
target = target[1:]
......
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