0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-01-31 06:43:12 +00:00
nextcloud_server/apps/files_sharing/tests/Controller
Ferdinand Thiessen 253f4345f1
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-28 16:40:50 +01:00
..
ExternalShareControllerTest.php chore: remove legacy action to test remote endpoint 2024-11-29 11:14:37 +01:00
PublicPreviewControllerTest.php fix: Adjust preview for view-only shares 2024-10-28 15:52:27 +01:00
ShareAPIControllerTest.php fix(files_sharing): Respect permissions passed when creating link shares 2025-01-28 16:40:50 +01:00
ShareControllerTest.php feat(files_sharing): use share node or label as page title 2024-11-08 14:20:58 +01:00
ShareesAPIControllerTest.php chore(apps): Apply new rector configuration to autouse classes 2024-10-15 10:40:25 +02:00
ShareInfoControllerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00