diff options
author | Pjotr Prins | 2020-07-27 09:13:54 +0100 |
---|---|---|
committer | GitHub | 2020-07-27 09:13:54 +0100 |
commit | 97128f26c5a6ca38d49656f2fb4ab6d4306107d2 (patch) | |
tree | 16e0936453576a1c73ea4eff1ae959a32a98348e /wqflask/utility/authentication_tools.py | |
parent | 68bd586b05ae5f3cb90829d2a108901b5b1d87a6 (diff) | |
parent | 56ad14434435133b9ef90870f50a52bd158bd6ba (diff) | |
download | genenetwork2-97128f26c5a6ca38d49656f2fb4ab6d4306107d2.tar.gz |
Merge pull request #411 from pjotrp/testing
Updating docs
Diffstat (limited to 'wqflask/utility/authentication_tools.py')
-rw-r--r-- | wqflask/utility/authentication_tools.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/utility/authentication_tools.py b/wqflask/utility/authentication_tools.py index ed7462d1..9a2a5ccd 100644 --- a/wqflask/utility/authentication_tools.py +++ b/wqflask/utility/authentication_tools.py @@ -45,7 +45,7 @@ def check_resource_availability(dataset, trait_id=None): def add_new_resource(dataset, trait_id=None): resource_ob = { - 'owner_id' : webqtlConfig.DEFAULT_OWNER_ID, + 'owner_id' : "none", # webqtlConfig.DEFAULT_OWNER_ID, 'default_mask': webqtlConfig.DEFAULT_PRIVILEGES, 'group_masks' : {} } @@ -84,6 +84,7 @@ def check_admin(resource_id=None): try: response = json.loads(requests.get(the_url).content)['admin'] except: + logger.debug(resource_info) response = resource_info['default_mask']['admin'] if 'edit-admins' in response: @@ -124,4 +125,4 @@ def check_owner_or_admin(dataset=None, trait_id=None, resource_id=None): else: return check_admin(resource_id) - return "not-admin"
\ No newline at end of file + return "not-admin" |