|
@@ -143,14 +143,22 @@ class RootController(BaseController):
|
143
|
143
|
except Exception as e:
|
144
|
144
|
flash(_('Document not found'), 'error')
|
145
|
145
|
|
|
146
|
+ user_specific_group_rights = pld.PODStaticController.getUserDedicatedGroupRightsOnNode(node_id)
|
|
147
|
+
|
|
148
|
+ current_user_rights = None
|
|
149
|
+ for right in user_specific_group_rights:
|
|
150
|
+ if right.group_id == -loCurrentUser.user_id:
|
|
151
|
+ current_user_rights = right
|
|
152
|
+
|
146
|
153
|
return dict(
|
147
|
154
|
current_user=loCurrentUser,
|
148
|
155
|
current_node=loCurrentNode,
|
149
|
156
|
allowed_nodes=llAccessibleNodes,
|
150
|
157
|
node_status_list = loNodeStatusList,
|
151
|
158
|
keywords = highlight,
|
152
|
|
- user_specific_group_rights = pld.PODStaticController.getUserDedicatedGroupRightsOnNode(node_id),
|
153
|
|
- real_group_rights = pld.PODStaticController.getRealGroupRightsOnNode(node_id)
|
|
159
|
+ user_specific_group_rights = user_specific_group_rights,
|
|
160
|
+ real_group_rights = pld.PODStaticController.getRealGroupRightsOnNode(node_id),
|
|
161
|
+ current_user_rights = current_user_rights
|
154
|
162
|
)
|
155
|
163
|
|
156
|
164
|
@expose('pboard.templates.search')
|