[odrs-web] Don't show the All Reviews link for non-logged-in users
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web] Don't show the All Reviews link for non-logged-in users
- Date: Mon, 16 May 2022 07:34:03 +0000 (UTC)
commit 27085b4df08bf272e67c8d464de6b91ee10f955e
Author: Richard Hughes <richard hughsie com>
Date: Mon May 16 08:33:32 2022 +0100
Don't show the All Reviews link for non-logged-in users
Fixes https://gitlab.gnome.org/Infrastructure/odrs-web/-/issues/14
odrs/templates/default.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/odrs/templates/default.html b/odrs/templates/default.html
index 6a8bf27..5679ef8 100644
--- a/odrs/templates/default.html
+++ b/odrs/templates/default.html
@@ -31,8 +31,8 @@
</div>
<div class="navbar-collapse collapse" id="navbar-wrapper">
<ul class="nav navbar-nav">
- <li><a href="{{url_for('.admin_show_all')}}">All Reviews</a></li>
{% if g.user is defined %}
+ <li><a href="{{url_for('.admin_show_all')}}">All Reviews</a></li>
<li><a href="{{url_for('.odrs_show_reported', limit=2)}}">Reported</a></li>
{% if g.user.is_admin %}
<li><a href="{{url_for('.admin_show_stats')}}">Statistics</a></li>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]