|
@@ -58,7 +58,7 @@ def dispatcher(user, action, tipo):
|
58
|
58
|
|
59
|
59
|
|
60
|
60
|
@app.route('/be/<user>/<action>/<tipo>', methods=['GET', 'POST'])
|
61
|
|
-def dispatcher(user, action, tipo):
|
|
61
|
+def database(user, action, tipo):
|
62
|
62
|
if not user in ["admin", "estudiante", "enfermera", "encargado", "facultad"]:
|
63
|
63
|
return render_template('login.html') # Mejor error
|
64
|
64
|
if not action in ["list", "view", "edit", "add"]:
|