Skip to content

Commit

Permalink
add cli for list and restore trash-bin items
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Dec 8, 2023
1 parent 41aa50b commit d24a9ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/add-trach-bin-cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Add cli commands for trash-bin

We added the `list` and `restore` commands to the trash-bin items to the CLI

https://github.com/cs3org/reva/pull/4392
https://github.com/owncloud/ocis/issues/7845
2 changes: 2 additions & 0 deletions pkg/storage/utils/decomposedfs/node/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ func ServiceAccountPermissions() provider.ResourcePermissions {
RemoveGrant: true, // for share expiry
ListRecycle: true, // for purge-trash-bin command
PurgeRecycle: true, // for purge-trash-bin command
RestoreRecycleItem: true, // for cli restore command
Delete: true, // for cli restore command with replace option
}
}

Expand Down

0 comments on commit d24a9ce

Please sign in to comment.