groupname like username - allow share with both
Signed-off-by: Christian Aigner <christian.aigner@huemer-it.com>
This commit is contained in:
parent
1c8779dc6e
commit
03ee137804
|
@ -438,7 +438,7 @@ class Manager implements IManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Identical share already existst
|
// 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');
|
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
|
//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');
|
throw new \Exception('Path is already shared with this group');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue