nextcloud/apps/files_sharing/tests/Controller
Ferdinand Thiessen ea37f03f7d
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:46:07 +01:00
..
ExternalShareControllerTest.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
PublicPreviewControllerTest.php Fix tests on PHP 8.1 for encryption, files_sharing, files_version, 2021-12-16 09:43:29 +01:00
ShareAPIControllerTest.php fix(files_sharing): Respect permissions passed when creating link shares 2025-01-31 18:46:07 +01:00
ShareControllerTest.php test: fix ShareControllerTest.php 2024-09-19 17:51:51 +02:00
ShareesAPIControllerTest.php fix(files_sharing): ShareesAPI - Return empty response when user is not allowed to share 2024-03-15 15:51:15 +01:00
ShareInfoControllerTest.php Update php licenses 2021-06-04 22:02:41 +02:00