aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/webqtlConfig.py
diff options
context:
space:
mode:
authorzsloan2020-06-20 17:33:22 -0500
committerzsloan2020-06-20 17:33:22 -0500
commit75802ed1f9e5d955987bf5f5eb78a9cb120116ec (patch)
tree0f4d15467ce57ef2b2978a07f53f379dd22bf535 /wqflask/base/webqtlConfig.py
parentfcb3cb1105cf2a1d97c1a08fa636b118ed231ffa (diff)
downloadgenenetwork2-75802ed1f9e5d955987bf5f5eb78a9cb120116ec.tar.gz
Added some admin functionality and fixed issue with temp traits
Diffstat (limited to 'wqflask/base/webqtlConfig.py')
-rw-r--r--wqflask/base/webqtlConfig.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/base/webqtlConfig.py b/wqflask/base/webqtlConfig.py
index 55407123..3d86bc22 100644
--- a/wqflask/base/webqtlConfig.py
+++ b/wqflask/base/webqtlConfig.py
@@ -17,6 +17,10 @@ DEBUG = 1
#USER privilege
USERDICT = {'guest':1,'user':2, 'admin':3, 'root':4}
+#Set privileges
+SUPER_PRIVILEGES = {'data': ['no-access', 'view', 'edit'], 'metadata': ['no-access', 'view', 'edit'], 'admin': ['not-admin', 'edit-access', 'edit-admins']}
+DEFAULT_PRIVILEGES = {'data': ['no-access', 'view'], 'metadata': ['no-access', 'view'], 'admin': ['not-admin']}
+
#minimum number of informative strains
KMININFORMATIVE = 5