Skip to content

Commit

Permalink
fix: Display 'Leave share' instead of 'Delete'
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr authored and skjnldsv committed Aug 20, 2024
1 parent 560282a commit 12a71e6
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 @@ -159,6 +159,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 12a71e6

Please sign in to comment.