From: Loic Baron <loic.baron@lip6.fr>
Date: Fri, 24 Jan 2014 17:50:24 +0000 (+0100)
Subject: Removed ple prefix to the user query in topmenu
X-Git-Tag: myslice-0.3-0~18
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3b28a7842f5464c38ecc968b54c13b442f7b5c9e;p=unfold.git

Removed ple prefix to the user query in topmenu
---

diff --git a/ui/topmenu.py b/ui/topmenu.py
index be21db22..69a8dd3d 100644
--- a/ui/topmenu.py
+++ b/ui/topmenu.py
@@ -69,7 +69,7 @@ from plugins.topmenuvalidation import TopmenuValidation
 # for asynchronous management of topmenu
 def topmenu_items_live (current, page):
     request=page.request
-    query_pi_auths = Query.get('ple:user').filter_by('user_hrn', '==', '$user_hrn' ).select('pi_authorities')
+    query_pi_auths = Query.get('user').filter_by('user_hrn', '==', '$user_hrn' ).select('pi_authorities')
     page.enqueue_query(query_pi_auths)
 #        # even though this plugin does not have any html materialization, the corresponding domid
 #        # must exist because it is searched at init-time to create the JS plugin