From 647c927b3417e378f1dc45b572c0311bbc5c74fa Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 18 Feb 2021 17:31:16 +0000 Subject: Fixed checking permissions in trait.py --- wqflask/base/trait.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask/base') diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index 9b96da85..9e85981f 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -39,7 +39,7 @@ def create_trait(**kw): else: permissions = check_resource_availability(dataset) - if "view" in permissions['data']: + if permissions['data'] != "no-access" the_trait = GeneralTrait(**kw) if the_trait.dataset.type != "Temp": the_trait = retrieve_trait_info( -- cgit v1.2.3