diff --git a/app/blueprints/report/__init__.py b/app/blueprints/report/__init__.py index e910be7d..5a3a7a9c 100644 --- a/app/blueprints/report/__init__.py +++ b/app/blueprints/report/__init__.py @@ -116,7 +116,7 @@ def report_received(): @bp.route("/admin/reports/") -@rank_required(UserRank.MODERATOR) +@rank_required(UserRank.EDITOR) def list_all(): reports = Report.query.order_by(db.asc(Report.is_resolved), db.asc(Report.created_at)).all() return render_template("report/list.html", reports=reports) diff --git a/app/models/__init__.py b/app/models/__init__.py index 928c9940..06cd0c25 100644 --- a/app/models/__init__.py +++ b/app/models/__init__.py @@ -212,7 +212,7 @@ class Report(db.Model): return False if perm == Permission.SEE_REPORT: - return user.rank.at_least(UserRank.MODERATOR) + return user.rank.at_least(UserRank.EDITOR) else: raise Exception("Permission {} is not related to reports".format(perm.name))