|
@@ -141,13 +141,10 @@ class RootController(BaseController):
|
141
|
141
|
except Exception as e:
|
142
|
142
|
flash(_('Document not found'), 'error')
|
143
|
143
|
|
144
|
|
- # FIXME - D.A - 2013-11-07 - Currently, the code build a new item if no item found for current user
|
145
|
|
- # the correct behavior should be to redirect to setup page
|
146
|
|
- loMenuItems = loApiController.buildTreeListForMenu(loCurrentNode, pbmd.PBNodeStatus.getVisibleIdsList(), llAccessibleNodes)
|
147
|
|
-
|
148
|
144
|
return dict(
|
149
|
|
- menu_node_list=loMenuItems,
|
|
145
|
+ current_user=loCurrentUser,
|
150
|
146
|
current_node=loCurrentNode,
|
|
147
|
+ allowed_nodes=llAccessibleNodes,
|
151
|
148
|
node_status_list = loNodeStatusList,
|
152
|
149
|
keywords = highlight,
|
153
|
150
|
user_specific_group_rights = pld.PODStaticController.getUserDedicatedGroupRightsOnNode(node_id),
|