Use sharingNG for sharing in given step, refactored accordingly

This commit is contained in:
Prarup Gurung
2024-05-03 09:52:29 +05:45
parent db281c4257
commit 7423fa3a4b
5 changed files with 56 additions and 53 deletions
@@ -754,7 +754,7 @@ trait Sharing {
$user = $this->getActualUsername($user);
if ($updateLastPublicLink) {
$share_id = (string) $this->getLastCreatedPublicShare()->id;
$share_id = (FeatureContext::isUsingSharingNG()) ? $this->shareNgGetLastCreatedLinkShareID() : (string) $this->getLastCreatedPublicShare()->id;
} else {
if ($shareOwner === null) {
$share_id = $this->getLastCreatedUserGroupShareId();