[odrs-web/oscp] Fix banning users from the review page
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web/oscp] Fix banning users from the review page
- Date: Wed, 3 Jul 2019 13:40:21 +0000 (UTC)
commit 4543a9312bef9ae7b5e3d06bc3c87f2e179aeb9a
Author: Richard Hughes <richard hughsie com>
Date: Wed Jul 3 11:38:57 2019 +0100
Fix banning users from the review page
app_data/odrs/templates/show.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app_data/odrs/templates/show.html b/app_data/odrs/templates/show.html
index 54521e0..5cff6c4 100644
--- a/app_data/odrs/templates/show.html
+++ b/app_data/odrs/templates/show.html
@@ -16,7 +16,7 @@
<strong>Actions</strong>
</div>
<div class="col-sm-11">
-{% if current_user.user_hash and not vote_exists %}
+{% if current_user.user.user_hash and not vote_exists %}
<a href="{{url_for('.admin_vote', review_id=r.review_id, val_str='up')}}">
<button class="btn btn-action" type="button">Vote Up</button>
</a>
@@ -105,10 +105,10 @@
{% endif %}
{% if current_user.is_authenticated %}
<span class="input-group-addon btn btn-action">
- <a href="{{url_for('.admin_show_user', user_hash=r.user_hash)}}">All</a>
+ <a href="{{url_for('.admin_show_user', user_hash=r.user.user_hash)}}">All</a>
</span>
<span class="input-group-addon btn btn-action">
- <a href="{{url_for('.admin_user_ban', user_hash=r.user_hash)}}">Ban</a>
+ <a href="{{url_for('.admin_user_ban', user_hash=r.user.user_hash)}}">Ban</a>
</span>
{% endif %}
</div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]