def profile(): if request.method=='GET': if session['netid'] == STAFF_USERNAME or db.on_staff(session['netid']): return render_template('staff.html', course_name=COURSE_NAME) return render_profile() else: return render_profile(message)
def loggedin_staff(): return (session['netid'] == STAFF_USERNAME or db.on_staff(session['netid']))