git://git.onelab.eu
/
unfold.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f67d901
)
Deactivated sfa query.
author
Yasin
<mohammed-yasin.rahman@lip6.fr>
Wed, 2 Apr 2014 10:44:45 +0000
(12:44 +0200)
committer
Yasin
<mohammed-yasin.rahman@lip6.fr>
Wed, 2 Apr 2014 10:44:45 +0000
(12:44 +0200)
portal/slicetabusers.py
patch
|
blob
|
history
diff --git
a/portal/slicetabusers.py
b/portal/slicetabusers.py
index
df9b6c9
..
49a2d76
100644
(file)
--- a/
portal/slicetabusers.py
+++ b/
portal/slicetabusers.py
@@
-22,10
+22,10
@@
class SliceUserView (LoginRequiredView, ThemeView):
def get(self, request, slicename):
if request.user.is_authenticated():
def get(self, request, slicename):
if request.user.is_authenticated():
- user_query = Query().get('user').select('user_hrn','parent_authority').filter_by('user_hrn','==','$user_hrn')
- user_details = execute_query(self.request, user_query)
+
#
user_query = Query().get('user').select('user_hrn','parent_authority').filter_by('user_hrn','==','$user_hrn')
+
#
user_details = execute_query(self.request, user_query)
# if sfa returns None
# if sfa returns None
- if user_details[0]['parent_authority'] is None:
+
#
if user_details[0]['parent_authority'] is None:
# find in local DB
user_query = Query().get('local:user').select('config')
user_details = execute_query(request, user_query)
# find in local DB
user_query = Query().get('local:user').select('config')
user_details = execute_query(request, user_query)