0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-02-07 18:09:45 +00:00
nextcloud_server/apps/files_sharing/tests/Controller
Ferdinand Thiessen 55b764b64b
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 22:18:03 +01:00
..
ExternalShareControllerTest.php Update php licenses 2021-06-04 22:02:41 +02: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 22:18:03 +01:00
ShareControllerTest.php Pluggable share provider 2023-02-02 15:41:26 +01:00
ShareesAPIControllerTest.php Update php licenses 2021-06-04 22:02:41 +02:00
ShareInfoControllerTest.php Update php licenses 2021-06-04 22:02:41 +02:00