fix: [trackers] blueprint user_role

otp
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
1 changed files with 3 additions and 2 deletions

View File

@ -69,9 +69,10 @@ def get_default_yara_rule_content():
@login_required @login_required
@login_read_only @login_read_only
def trackers_dashboard(): def trackers_dashboard():
user_org = current_user.get_org()
user_id = current_user.get_user_id() user_id = current_user.get_user_id()
trackers = Tracker.get_trackers_dashboard() trackers = Tracker.get_trackers_dashboard(user_org, user_id)
stats = Tracker.get_trackers_stats(current_user.get_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) return render_template("trackers_dashboard.html", trackers=trackers, stats=stats, bootstrap_label=bootstrap_label)
@hunters.route("/trackers/all") @hunters.route("/trackers/all")