[full-ci] Delete resharing tests (#8704)
* feat: disable resharing by default delete re-sharing tests * fix tests --------- Co-authored-by: Michael Barz <mbarz@owncloud.com>
This commit is contained in:
co-authored by
Michael Barz
parent
3143fd9c76
commit
79c74711c4
@@ -39,7 +39,6 @@ class SharingHelper {
|
||||
'update' => 2,
|
||||
'create' => 4,
|
||||
'delete' => 8,
|
||||
'share' => 16,
|
||||
'invite' => 0
|
||||
];
|
||||
|
||||
@@ -123,6 +122,9 @@ class SharingHelper {
|
||||
|
||||
if ($permissions !== null) {
|
||||
$fd['permissions'] = self::getPermissionSum($permissions);
|
||||
} elseif ($shareType !== "public_link") {
|
||||
// sharing without permissions should automatically set the permission to 15 for share and 1 for public link
|
||||
$fd['permissions'] = 15;
|
||||
}
|
||||
|
||||
if (!\in_array($ocsApiVersion, [1, 2], true)) {
|
||||
|
||||
Reference in New Issue
Block a user