Skip to content

Commit

Permalink
allow unshare any status of vfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa committed Jan 15, 2025
1 parent 36f75e8 commit 983a2b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ai/backend/manager/api/vfolder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2183,7 +2183,7 @@ async def share(request: web.Request, params: Any, row: VFolderRow) -> web.Respo
@admin_required
@server_status_required(ALL_ALLOWED)
@with_vfolder_rows_resolved(VFolderPermission.OWNER_PERM)
@with_vfolder_status_checked(VFolderStatusSet.UPDATABLE)
@with_vfolder_status_checked(VFolderStatusSet.ALL)
@check_api_params(
t.Dict({
t.Key("emails"): t.List(t.String),
Expand Down Expand Up @@ -2660,7 +2660,7 @@ async def restore(request: web.Request, params: RestoreRequestModel) -> web.Resp
@auth_required
@server_status_required(ALL_ALLOWED)
@with_vfolder_rows_resolved(VFolderPermissionSetAlias.READABLE)
@with_vfolder_status_checked(VFolderStatusSet.UPDATABLE)
@with_vfolder_status_checked(VFolderStatusSet.ALL)
@check_api_params(
t.Dict({
tx.AliasedKey(["shared_user_uuid", "sharedUserUuid"], default=None): t.String | t.Null,
Expand Down

0 comments on commit 983a2b0

Please sign in to comment.