updated to modul etichete
This commit is contained in:
@@ -332,4 +332,11 @@ def get_report_data():
|
||||
data["error"] = "Error fetching report data."
|
||||
|
||||
print("Data being returned:", data)
|
||||
return jsonify(data)
|
||||
return jsonify(data)
|
||||
|
||||
@bp.route('/etichete')
|
||||
def etichete():
|
||||
if 'role' not in session or session['role'] not in ['superadmin', 'etichete']:
|
||||
flash('Access denied: Etichete users only.')
|
||||
return redirect(url_for('main.dashboard'))
|
||||
return render_template('main_page_etichete.html')
|
||||
Reference in New Issue
Block a user