aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorzsloan2020-06-20 17:47:38 -0500
committerzsloan2020-06-20 17:47:38 -0500
commit51417c06061246bc92be89db198b3e74e7126035 (patch)
tree142c830732f02e982ac26cb7764aa07452143ffe /wqflask/utility
parent75802ed1f9e5d955987bf5f5eb78a9cb120116ec (diff)
downloadgenenetwork2-51417c06061246bc92be89db198b3e74e7126035.tar.gz
Fixed ports for proxy (though I need to add the port to global variables) and also simplified the check_owner_or_admin function a little
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/authentication_tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/utility/authentication_tools.py b/wqflask/utility/authentication_tools.py
index 6c88949b..06b2854a 100644
--- a/wqflask/utility/authentication_tools.py
+++ b/wqflask/utility/authentication_tools.py
@@ -35,7 +35,7 @@ def check_resource_availability(dataset, trait_id=None):
else:
return response #ZS: Need to substitute in something that creates the resource in Redis later
- the_url = "http://localhost:8081/available?resource={}&user={}".format(resource_id, g.user_session.user_id)
+ the_url = "http://localhost:8080/available?resource={}&user={}".format(resource_id, g.user_session.user_id)
try:
response = json.loads(requests.get(the_url).content)
except:
@@ -47,7 +47,7 @@ def check_resource_availability(dataset, trait_id=None):
return False
def check_admin(resource_id=None):
- the_url = "http://localhost:8081/available?resource={}&user={}".format(resource_id, g.user_session.user_id)
+ the_url = "http://localhost:8080/available?resource={}&user={}".format(resource_id, g.user_session.user_id)
try:
response = json.loads(requests.get(the_url).content)['admin']
except: