summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-26 15:08:19 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-27 17:26:40 +0200
commitd8bac16a980634f182e9c753a01e114c3a482af0 (patch)
treeea9fe7c6302c8cf8d01704e0fec38deeb0d54513 /ogcp/views.py
parent57da4f4efa0b8b7d96b1238b0127aa83d20007eb (diff)
Add Users section
In Users section/view, administrator accounts can manage all task related to users. For example: add, delete and edit users.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index d1e4109..c10d2c0 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1186,6 +1186,14 @@ def images():
images = r.json()['images']
return render_template('images.html', images=images)
+
+@app.route('/users/', methods=['GET'])
+@login_required
+def users():
+ users = app.config['USERS']
+ return render_template('users.html', users=users)
+
+
@app.route('/action/image/info', methods=['GET'])
@login_required
def action_image_info():