fix: [trackers] blueprint user_role

This commit is contained in:
terrtia 2024-09-12 09:24:45 +02:00
parent d8724fa96e
commit 9323ac39e8
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

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