confirm resharing rights if viewer is current owner
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
768de086ea
commit
441b81a3af
|
@ -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