def viewEmployee(ID, user=None): if 'usertype' in session: if session['usertype'] == 'HR' or session['usertype'] == 'ADM': return render_template('employee.html', FE = db.getEmployee(ID), user=escape(session['user']), ) else: flash('Unauthorized access') return redirect(url_for('logout'))
def gafe(): return render_template('test.html', FieldEmployees=db.getEmployee(2))