From b5c07c6a65dc8f342a5c5d65349aa5dfbf83862d Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 18 Feb 2021 18:31:11 +0000 Subject: Changed DEFAULT_PERMISSIONS AND SUPER_PERMISSIONS to not have permissions be lists (I think the proxy expects them to not be lists, but then returns them as lists; need to check about this) --- wqflask/base/webqtlConfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wqflask/base/webqtlConfig.py b/wqflask/base/webqtlConfig.py index 72d7ac98..aee8616a 100644 --- a/wqflask/base/webqtlConfig.py +++ b/wqflask/base/webqtlConfig.py @@ -18,8 +18,8 @@ DEBUG = 1 USERDICT = {'guest':1,'user':2, 'admin':3, 'root':4} #Set privileges -SUPER_PRIVILEGES = {'data': ['edit'], 'metadata': ['edit'], 'admin': ['edit-admins']} -DEFAULT_PRIVILEGES = {'data': ['view'], 'metadata': ['view'], 'admin': ['not-admin']} +SUPER_PRIVILEGES = {'data': 'edit', 'metadata': 'edit', 'admin': 'edit-admins'} +DEFAULT_PRIVILEGES = {'data': 'view', 'metadata': 'view', 'admin': 'not-admin'} #minimum number of informative strains KMININFORMATIVE = 5 -- cgit v1.2.3