Skip to content

Commit

Permalink
Merge pull request #4392 from 2403905/issue-7845
Browse files Browse the repository at this point in the history
add cli for list and restore trash-bin items
  • Loading branch information
micbar authored Dec 12, 2023
2 parents 5efdfa4 + dbe284f commit ef06600
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 additional permissions to service accounts

We added the `RestoreRecycleItem` and `Delete` permissions to service accounts

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 ef06600

Please sign in to comment.