You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/private/Share20/Manager.php
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -565,9 +565,10 @@ protected function userCreateChecks(IShare $share) {
565
565
//Shares are not identical
566
566
}
567
567
568
-
// Identical share already existst
568
+
// Identical share already exists
569
569
if ($existingShare->getSharedWith() === $share->getSharedWith() && $existingShare->getShareType() === $share->getShareType()) {
570
-
thrownewAlreadySharedException('Path is already shared with this user', $existingShare);
570
+
$message = $this->l->t('Sharing %s failed, because this item is already shared with user %s', [$share->getNode()->getName(), $share->getSharedWithDisplayName()]);
if ($group->inGroup($user) && $existingShare->getShareOwner() !== $share->getShareOwner()) {
580
-
thrownewAlreadySharedException('Path is already shared with this user', $existingShare);
581
+
$message = $this->l->t('Sharing %s failed, because this item is already shared with user %s', [$share->getNode()->getName(), $share->getSharedWithDisplayName()]);
0 commit comments