updated to modul etichete

This commit is contained in:
2025-04-30 11:57:48 +03:00
parent e6878495a1
commit 56f3f8805d
7 changed files with 48 additions and 3 deletions

View File

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