aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2021-10-18 12:02:51 +0300
committerBonfaceKilz2021-10-25 14:00:14 +0300
commit8ba81937fec81c7e9790db422a52d99f4234a194 (patch)
treef73b5f3ed774fdf2c4e6aeac4186da7f7d86982e /wqflask
parentff2813b8c0522d780ffc8bc44692a749de9f45e6 (diff)
downloadgenenetwork2-8ba81937fec81c7e9790db422a52d99f4234a194.tar.gz
authentication_tools: Mark `check_owner_or_admin` as deprecated
Use the new auth proxy tools instead.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/utility/authentication_tools.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/utility/authentication_tools.py b/wqflask/utility/authentication_tools.py
index afea69e1..c4801c8c 100644
--- a/wqflask/utility/authentication_tools.py
+++ b/wqflask/utility/authentication_tools.py
@@ -1,6 +1,7 @@
import json
import requests
+from deprecated import deprecated
from flask import g
from base import webqtlConfig
@@ -126,6 +127,7 @@ def check_owner(dataset=None, trait_id=None, resource_id=None):
return False
+@deprecated
def check_owner_or_admin(dataset=None, trait_id=None, resource_id=None):
if not resource_id:
if dataset.type == "Temp":