Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ protected function userCreateChecks(\OCP\Share\IShare $share) {
}

// Identical share already existst
if ($existingShare->getSharedWith() === $share->getSharedWith()) {
if ($existingShare->getSharedWith() === $share->getSharedWith() && $existingShare->getShareType() === $share->getShareType()) {
throw new \Exception('Path is already shared with this user');
}

Expand Down Expand Up @@ -493,7 +493,7 @@ protected function groupCreateChecks(\OCP\Share\IShare $share) {
//It is a new share so just continue
}

if ($existingShare->getSharedWith() === $share->getSharedWith()) {
if ($existingShare->getSharedWith() === $share->getSharedWith() && $existingShare->getShareType() === $share->getShareType()) {
throw new \Exception('Path is already shared with this group');
}
}
Expand Down