mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #14709 from HuemerGroup/groupname_like_username-allow_share_with_both
groupname like username - allow share with both
This commit is contained in:
commit
8781a77d37
1 changed files with 2 additions and 2 deletions
|
|
@ -438,7 +438,7 @@ class Manager implements IManager {
|
|||
}
|
||||
|
||||
// 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');
|
||||
}
|
||||
|
||||
|
|
@ -493,7 +493,7 @@ class Manager implements IManager {
|
|||
//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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue