aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r--wqflask/base/trait.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index dcd81085..4352c527 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -44,9 +44,10 @@ def create_trait(**kw):
if dataset.type == 'Publish':
permissions = check_resource_availability(
- dataset, kw.get('name'))
+ dataset, g.user_session.user_id, kw.get('name'))
else:
- permissions = check_resource_availability(dataset)
+ permissions = check_resource_availability(
+ dataset, g.user_session.user_id)
if permissions['data'] != "no-access":