Skip to content

Commit

Permalink
Bugfix: Not able to restore space in some constellations for some(spa…
Browse files Browse the repository at this point in the history
…ce) admins (#10424)

* Don't send any space data while restore drive

Co-authored-by: Jannik Stehle <50302941+JammingBen@users.noreply.github.com>

---------

Co-authored-by: Jannik Stehle <50302941+JammingBen@users.noreply.github.com>
  • Loading branch information
AlexAndBear and JammingBen committed Jan 31, 2024
1 parent 415a6ce commit eb6d68a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/bugfix-restore-space
@@ -0,0 +1,5 @@
Bugfix: Restore space

We've fixed a bug where restoring a space was not possible in some constellations for (space) admins.

https://github.com/owncloud/web/pull/10424
Expand Up @@ -28,15 +28,11 @@ export const useSpaceActionsRestore = ({ store }: { store?: Store<any> } = {}) =
const client = clientService.graphAuthenticated
const promises = spaces.map((space) =>
client.drives
.updateDrive(
space.id.toString(),
{ name: space.name },
{
headers: {
Restore: true
}
.updateDrive(space.id.toString(), {} as any, {
headers: {
Restore: true
}
)
})
.then((updatedSpace) => {
if (unref(route).name === 'admin-settings-spaces') {
space.disabled = false
Expand Down

0 comments on commit eb6d68a

Please sign in to comment.