confirm resharing rights if viewer is current owner (#18630)
confirm resharing rights if viewer is current owner
This commit is contained in:
commit
a08e69a005
|
@ -1462,6 +1462,10 @@ class ShareAPIController extends OCSController {
|
|||
* @return bool
|
||||
*/
|
||||
private function hasResharingRights($viewer, $node): bool {
|
||||
if ($viewer === $node->getOwner()->getUID()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
foreach ([$node, $node->getParent()] as $node) {
|
||||
$shares = $this->getSharesFromNode($viewer, $node, true);
|
||||
foreach ($shares as $share) {
|
||||
|
|
Loading…
Reference in New Issue