aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/utility/redis_tools.py2
-rw-r--r--wqflask/wqflask/templates/new_security/not_authenticated.html20
2 files changed, 11 insertions, 11 deletions
diff --git a/wqflask/utility/redis_tools.py b/wqflask/utility/redis_tools.py
index 1377a564..81ba04ea 100644
--- a/wqflask/utility/redis_tools.py
+++ b/wqflask/utility/redis_tools.py
@@ -288,7 +288,7 @@ def add_resource(resource_info, update=True):
else:
resource_id = hmac.hmac_creation('{}:{}'.format(str(resource_info['type']), str(resource_info['data']['dataset'])))
- if not Redis.hexists("resources", resource_id):
+ if update or not Redis.hexists("resources", resource_id):
Redis.hset("resources", resource_id, json.dumps(resource_info))
return resource_info
diff --git a/wqflask/wqflask/templates/new_security/not_authenticated.html b/wqflask/wqflask/templates/new_security/not_authenticated.html
index 7d0d3060..ea688346 100644
--- a/wqflask/wqflask/templates/new_security/not_authenticated.html
+++ b/wqflask/wqflask/templates/new_security/not_authenticated.html
@@ -1,11 +1,11 @@
-{% extends "base.html" %}
-{% block title %}Authentication Needed{% endblock %}
-{% block content %}
- <div class="container">
- <div class="page-header">
- <h3>You lack the permissions to view this data.</h3>
- </div>
- <p>Please contact the data's owner or GN administrators if you believe you should have access to this data.</p>
- </div>
-
+{% extends "base.html" %}
+{% block title %}Authentication Needed{% endblock %}
+{% block content %}
+ <div class="container">
+ <div class="page-header">
+ <h3>You lack the permissions to view these data.</h3>
+ </div>
+ <p>Please contact the data's owner or GN administrators if you believe you should have access to these data.</p>
+ </div>
+
{% endblock %} \ No newline at end of file