Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gnukhata
gkcore
Commits
459cef58
Commit
459cef58
authored
Nov 29, 2017
by
Prajkta Patkar
Committed by
Nitesh Laxman Chaughule
Dec 19, 2017
Browse files
code tested & documented
parent
490a1b0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
gkcore/views/api_user.py
View file @
459cef58
...
...
@@ -206,6 +206,7 @@ class api_user(object):
result
=
self
.
con
.
execute
(
select
([
gkdb
.
users
.
c
.
username
,
gkdb
.
users
.
c
.
userid
,
gkdb
.
users
.
c
.
userrole
]).
where
(
gkdb
.
users
.
c
.
orgcode
==
authDetails
[
"orgcode"
]).
order_by
(
gkdb
.
users
.
c
.
username
))
users
=
[]
for
row
in
result
:
# Specify user role
if
(
row
[
"userrole"
]
==
-
1
):
userroleName
=
"Admin"
elif
(
row
[
"userrole"
]
==
0
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment