Change to correct function call getItemSharedWithBySource()
This commit is contained in:
parent
b440dfc67e
commit
ddfa760a5e
1 changed files with 1 additions and 1 deletions
|
@ -623,7 +623,7 @@ class Share {
|
|||
$backend = self::getBackend($itemType);
|
||||
// Check if this is a reshare
|
||||
// TODO This query has pretty bad performance if there are large collections, figure out a way to make the collection searching more efficient
|
||||
if ($checkReshare = self::getItemSharedWith($itemType, $itemSource, self::FORMAT_NONE, null, true)) {
|
||||
if ($checkReshare = self::getItemSharedWithBySource($itemType, $itemSource, self::FORMAT_NONE, null, true)) {
|
||||
if ((int)$checkReshare['permissions'] & self::PERMISSION_SHARE) {
|
||||
if (~(int)$checkReshare['permissions'] & $permissions) {
|
||||
$message = 'Sharing '.$itemSource.' failed, because the permissions exceed permissions granted to '.$uidOwner;
|
||||
|
|
Loading…
Reference in a new issue