nextcloud-server/apps/files_sharing/tests/Controller
Ferdinand Thiessen ee5f5bc159
fix(files_sharing): Respect permissions passed when creating link shares
Given:
User creates a link or email share with permissions=4 (create only = file drop).

Problem:
Currently the permissions are automatically extended to permissions = 5
(READ + CREATE). Work around was to create the share and directly update
it.

Solution:
Respect what the user is requesting, create a file drop share.

Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-01-31 18:21:26 +07:00
..
ExternalShareControllerTest.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
PublicPreviewControllerTest.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
ShareAPIControllerTest.php fix(files_sharing): Respect permissions passed when creating link shares 2025-01-31 18:21:26 +07:00
ShareControllerTest.php test: fix ShareControllerTest.php 2024-09-19 14:24:22 +07:00
ShareInfoControllerTest.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
ShareesAPIControllerTest.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00