nextcloud/apps/files_sharing/lib/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
..
AcceptController.php Update php licenses 2021-06-04 22:02:41 +02:00
DeletedShareAPIController.php Add SHARE_TYPE_SCIENCEMESH 2023-03-08 17:48:39 +00:00
ExternalSharesController.php ocm services 2023-09-22 19:46:42 -01:00
PublicPreviewController.php Check share attributes on preview endpoints 2022-10-25 11:35:31 +02:00
RemoteController.php Fix unit tests 2022-06-07 20:40:55 +02:00
SettingsController.php Let users choose a share_folder 2021-09-06 16:39:11 +02:00
ShareAPIController.php fix(files_sharing): Respect permissions passed when creating link shares 2025-01-31 22:18:03 +01:00
ShareController.php Pluggable share provider 2023-02-02 15:41:26 +01:00
ShareesAPIController.php Add SHARE_TYPE_SCIENCEMESH 2023-03-08 17:48:39 +00:00
ShareInfoController.php chore: Add return types 2023-01-31 11:42:33 +01:00