From 44689aad36234805a4e1e789850d9fe378e49140 Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Sun, 3 Apr 2022 11:56:15 -0500 Subject: [PATCH] remove gm req on bug get endpoint --- app/__init__.py | 1 - app/bug_reports.py | 1 - app/templates/header.html.j2 | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index e590f7e..4fa2949 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -82,7 +82,6 @@ def create_app(): if cdclient is not None: cdclient.close() - # add the commands to flask cli app.cli.add_command(init_db) app.cli.add_command(init_accounts) diff --git a/app/bug_reports.py b/app/bug_reports.py index c378f0a..29eda20 100644 --- a/app/bug_reports.py +++ b/app/bug_reports.py @@ -55,7 +55,6 @@ def resolve(id): @bug_report_blueprint.route('/get/', methods=['GET']) @login_required -@gm_level(3) def get(status): columns = [ ColumnDT(BugReport.id), # 0 diff --git a/app/templates/header.html.j2 b/app/templates/header.html.j2 index 56622d5..475eaf0 100644 --- a/app/templates/header.html.j2 +++ b/app/templates/header.html.j2 @@ -73,7 +73,7 @@ {% endif %} - {% else %} + {% elif current_user.is_authenticated %}