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)