diff --git a/changes/1652.feature.md b/changes/1652.feature.md new file mode 100644 index 0000000000..e1cbc3ab11 --- /dev/null +++ b/changes/1652.feature.md @@ -0,0 +1 @@ +Allow privileged access for other's VFolder to superadmin diff --git a/src/ai/backend/manager/models/vfolder.py b/src/ai/backend/manager/models/vfolder.py index 152d58a56c..7dbfff2571 100644 --- a/src/ai/backend/manager/models/vfolder.py +++ b/src/ai/backend/manager/models/vfolder.py @@ -315,6 +315,9 @@ async def query_accessible_vfolders( if allowed_vfolder_types is None: allowed_vfolder_types = ["user"] # legacy default + if user_role == UserRole.SUPERADMIN or user_role == "superadmin": + allow_privileged_access = True + vfolders_selectors = [ vfolders.c.name, vfolders.c.id,