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-3
Original file line number
Diff line number
Diff line change
@@ -564,9 +564,10 @@ protected function userCreateChecks(IShare $share) {
564
564
//Shares are not identical
565
565
}
566
566
567
-
// Identical share already existst
567
+
// Identical share already exists
568
568
if ($existingShare->getSharedWith() === $share->getSharedWith() && $existingShare->getShareType() === $share->getShareType()) {
569
-
thrownewAlreadySharedException('Path is already shared with this user', $existingShare);
569
+
$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()) {
579
-
thrownewAlreadySharedException('Path is already shared with this user', $existingShare);
580
+
$message = $this->l->t('Sharing %s failed, because this item is already shared with user %s', [$share->getNode()->getName(), $share->getSharedWithDisplayName()]);
0 commit comments