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