mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-04 18:14:53 -05:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user