[test-only] share items with share permission if resharing is disabled (#8461)

* share item with share permission if resharing is disabled

* php style fix

* change error message
This commit is contained in:
Viktor Scharf
2024-02-21 11:14:58 +01:00
committed by GitHub
parent 5ed57cc09a
commit 5a89c3605f
2 changed files with 52 additions and 0 deletions
@@ -2231,6 +2231,11 @@ class SpacesContext implements Context {
"role" => $rows["role"]
];
// share with custom permission
if (isset($rows["permissions"])) {
$body["permissions"] = $rows["permissions"];
}
$fullUrl = $this->baseUrl . $this->ocsApiUrl;
$response = $this->sendPostRequestToUrl(
$fullUrl,