Commit 459cef58 authored by Prajkta Patkar's avatar Prajkta Patkar Committed by Nitesh Laxman Chaughule
Browse files

code tested & documented

parent 490a1b0a
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment