[odrs-web/oscp] Revert "Allow moderators to change thier own passwords"
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web/oscp] Revert "Allow moderators to change thier own passwords"
- Date: Wed, 29 Apr 2020 18:07:38 +0000 (UTC)
commit fabae04b88fa4db83ce82c3794f0722e1ac254c7
Author: Richard Hughes <richard hughsie com>
Date: Wed Apr 29 19:07:23 2020 +0100
Revert "Allow moderators to change thier own passwords"
This reverts commit 6c6e715ca2c4b0bb36d15e6d1dfd87398e94dcb5.
app_data/odrs/views_admin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app_data/odrs/views_admin.py b/app_data/odrs/views_admin.py
index d8921b0..dd7b334 100644
--- a/app_data/odrs/views_admin.py
+++ b/app_data/odrs/views_admin.py
@@ -590,7 +590,7 @@ def odrs_moderator_show(moderator_id):
"""
Shows an admin panel for a moderator
"""
- if moderator_id != current_user.moderator_id:
+ if moderator_id != current_user.moderator_id and not current_user.is_admin:
flash('Unable to show moderator information', 'error')
return redirect(url_for('.odrs_index'))
mod = db.session.query(Moderator).filter(Moderator.moderator_id == moderator_id).first()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]