From da8ddf6d85b59547635335d26bf34b9c8aedd5cc Mon Sep 17 00:00:00 2001 From: khansadaoudi Date: Fri, 18 Oct 2024 09:34:45 +0200 Subject: [PATCH] allow super admin to have access to users trees in blind annotation mode --- app/trees/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/trees/controller.py b/app/trees/controller.py index acde567..c1fc66b 100644 --- a/app/trees/controller.py +++ b/app/trees/controller.py @@ -68,7 +68,7 @@ def get(self, project_name: str, sample_name: str): if current_user.is_authenticated: username = current_user.username - if project_access <= 1: + if project_access <= 1 and not current_user.super_admin: sample_trees = TreeService.add_user_tree(sample_trees, username) restricted_users = [BASE_TREE, VALIDATED, username] sample_trees = TreeService.restrict_trees(sample_trees, restricted_users)