Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Allow admins to purge other user's vfolders #3223

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/3223.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix purge functionality that deletes VFolder records by allowing admins to query other users' VFolders
1 change: 1 addition & 0 deletions src/ai/backend/manager/api/vfolder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading