mirror of
https://github.com/aaronleetw/Attendance.git
synced 2024-11-14 19:11:39 -08:00
Check permission
This commit is contained in:
parent
dfae62ad68
commit
09ab2230a5
1 changed files with 2 additions and 1 deletions
3
app.py
3
app.py
|
@ -42,7 +42,8 @@ def check_login_status():
|
||||||
|
|
||||||
|
|
||||||
def check_permission():
|
def check_permission():
|
||||||
return db.child('Users').child(session['uid']).child('permission').get().val() == 'admin'
|
return (db.child('Users').child(session['uid']).child('permission').get().val() == 'admin' and
|
||||||
|
db.child("Users").child(session['uid']).child("showUpload").get().val() == '1')
|
||||||
|
|
||||||
|
|
||||||
def manageProcess(fCommand, fData):
|
def manageProcess(fCommand, fData):
|
||||||
|
|
Loading…
Reference in a new issue