nextcloud/apps/files_sharing/lib/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 +01:00
..
AcceptController.php refactor(files_sharing): Replace security annotations with respective attributes 2024-07-27 22:42:51 +02:00
DeletedShareAPIController.php refactor(files_sharing): Replace security annotations with respective attributes 2024-07-27 22:42:51 +02:00
ExternalSharesController.php chore: stricter access to testremote endpoint 2024-11-28 10:49:27 +00:00
PublicPreviewController.php refactor(files_sharing): Replace security annotations with respective attributes 2024-07-27 22:42:51 +02:00
RemoteController.php refactor(files_sharing): Replace security annotations with respective attributes 2024-07-27 22:42:51 +02:00
SettingsController.php refactor(files_sharing): Replace security annotations with respective attributes 2024-07-27 22:42:51 +02:00
ShareAPIController.php fix(files_sharing): Respect permissions passed when creating link shares 2025-01-31 18:21:26 +01:00
ShareController.php fix(files_sharing): show proper share not found error message 2024-08-06 16:25:10 +02:00
ShareesAPIController.php fix(files_sharing): filter out invalid shareWith in sharee API 2024-08-05 20:36:45 +02:00
ShareInfoController.php refactor(files_sharing): Replace security annotations with respective attributes 2024-07-27 22:42:51 +02:00