set virtual owner on non-personal spaces

This commit is contained in:
Michael Barz
2022-08-01 12:53:24 +02:00
parent 19c9125fdf
commit cce04f94ff
7 changed files with 30 additions and 44 deletions
@@ -2843,18 +2843,12 @@ class SpacesContext implements Context {
string $shouldOrNot
): void {
$space = $this->getSpaceByName($user, $spaceName);
$url = "/apps/files_sharing/api/v1/shares";
$bodyTable = new TableNode([
["space_ref", $space['id']],
["reshares", true],
]);
$url = "/apps/files_sharing/api/v1/shares?reshares=true&space_ref=" . $space['id'];
$this->ocsContext->userSendsHTTPMethodToOcsApiEndpointWithBody(
$user,
'GET',
$url,
$bodyTable
);
$should = ($shouldOrNot !== "not");