Skip to content

Commit

Permalink
fix: Display 'Leave share' instead of 'Delete'
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr committed Aug 20, 2024
1 parent 1e93ebc commit 99e6f23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/files_sharing/lib/Controller/ShareAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ protected function formatShare(IShare $share, ?Node $recipientNode = null): arra
$result['item_permissions'] = $node->getPermissions();
}

// See MOUNT_ROOT_PROPERTYNAME dav property
$result['is-mount-root'] = $node->getInternalPath() === '';
$result['mount-type'] = $node->getFileInfo()->getMountPoint()->getMountType();

$result['mimetype'] = $node->getMimetype();
$result['has_preview'] = $this->previewManager->isAvailable($node);
$result['storage_id'] = $node->getStorage()->getId();
Expand Down

0 comments on commit 99e6f23

Please sign in to comment.