Check permission

This commit is contained in:
Aaron Lee 2021-09-15 22:46:46 +08:00
parent dfae62ad68
commit 09ab2230a5

3
app.py
View file

@ -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):