Merge branch 'develop'
commit
22ef252326
|
@ -814,7 +814,7 @@ class ResetPassword:
|
||||||
|
|
||||||
query = (" SELECT name "
|
query = (" SELECT name "
|
||||||
" FROM tbl_users "
|
" FROM tbl_users "
|
||||||
" WHERE uuid = %s AND is_admin = true ")
|
" WHERE uuid = %s AND is_admin = 1 ")
|
||||||
cursor.execute(query, (admin_user_uuid,))
|
cursor.execute(query, (admin_user_uuid,))
|
||||||
row = cursor.fetchone()
|
row = cursor.fetchone()
|
||||||
if row is None:
|
if row is None:
|
||||||
|
|
|
@ -52,7 +52,7 @@ def access_control(req):
|
||||||
description='API.ADMINISTRATOR_SESSION_TIMEOUT')
|
description='API.ADMINISTRATOR_SESSION_TIMEOUT')
|
||||||
query = (" SELECT name "
|
query = (" SELECT name "
|
||||||
" FROM tbl_users "
|
" FROM tbl_users "
|
||||||
" WHERE uuid = %s AND is_admin = true ")
|
" WHERE uuid = %s AND is_admin = 1 ")
|
||||||
cursor.execute(query, (admin_user_uuid,))
|
cursor.execute(query, (admin_user_uuid,))
|
||||||
row = cursor.fetchone()
|
row = cursor.fetchone()
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|
Loading…
Reference in New Issue