From 23698985d6715fc245dd963439e5cced941af69d Mon Sep 17 00:00:00 2001 From: Sanghun Lee Date: Mon, 9 Dec 2024 12:21:26 +0900 Subject: [PATCH 1/2] fix: Allow admins to purge vfolders --- src/ai/backend/manager/api/vfolder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ai/backend/manager/api/vfolder.py b/src/ai/backend/manager/api/vfolder.py index 90f619a1b9..52da5605ce 100644 --- a/src/ai/backend/manager/api/vfolder.py +++ b/src/ai/backend/manager/api/vfolder.py @@ -2556,6 +2556,7 @@ async def purge(request: web.Request, params: PurgeRequestModel) -> web.Response VFolderPermission.OWNER_PERM, folder_id, allowed_status_set=VFolderStatusSet.PURGABLE, + allow_privileged_access=True, ) )[0] await check_vfolder_status(row, VFolderStatusSet.PURGABLE) From 319e70c9fcded647ee3f4b82576693e8c0625262 Mon Sep 17 00:00:00 2001 From: Sanghun Lee Date: Mon, 9 Dec 2024 12:28:06 +0900 Subject: [PATCH 2/2] add news fragment --- changes/3223.fix.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/3223.fix.md diff --git a/changes/3223.fix.md b/changes/3223.fix.md new file mode 100644 index 0000000000..62fb396d15 --- /dev/null +++ b/changes/3223.fix.md @@ -0,0 +1 @@ +Fix purge functionality that deletes VFolder records by allowing admins to query other users' VFolders