From 9323ac39e89da65a10c142303fef96174626b429 Mon Sep 17 00:00:00 2001 From: terrtia Date: Thu, 12 Sep 2024 09:24:45 +0200 Subject: [PATCH] fix: [trackers] blueprint user_role --- var/www/blueprints/hunters.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/var/www/blueprints/hunters.py b/var/www/blueprints/hunters.py index 61473386..1233f75e 100644 --- a/var/www/blueprints/hunters.py +++ b/var/www/blueprints/hunters.py @@ -69,9 +69,10 @@ def get_default_yara_rule_content(): @login_required @login_read_only def trackers_dashboard(): + user_org = current_user.get_org() user_id = current_user.get_user_id() - trackers = Tracker.get_trackers_dashboard() - stats = Tracker.get_trackers_stats(current_user.get_org(), user_id) + trackers = Tracker.get_trackers_dashboard(user_org, user_id) + stats = Tracker.get_trackers_stats(user_org, user_id) return render_template("trackers_dashboard.html", trackers=trackers, stats=stats, bootstrap_label=bootstrap_label) @hunters.route("/trackers/all")