Skip to content

Commit

Permalink
allow super admin to have access to users trees in blind annotation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Oct 18, 2024
1 parent 7f9c6f2 commit da8ddf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/trees/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit da8ddf6

Please sign in to comment.