nextcloud/apps/files_sharing/lib/Controller
Ferdinand Thiessen c6c8cc781c
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 19:14:45 +01:00
..
AcceptController.php refactor: Migrate IgnoreOpenAPI attributes to OpenAPI 2024-01-19 09:12:34 +01:00
DeletedShareAPIController.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
ExternalSharesController.php chore: stricter access to testremote endpoint 2024-11-28 10:46:58 +00:00
PublicPreviewController.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
RemoteController.php refactor: Rename OpenAPI type aliases to their namespaces 2023-11-02 11:37:15 +01:00
SettingsController.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
ShareAPIController.php fix(files_sharing): Respect permissions passed when creating link shares 2025-01-31 19:14:45 +01:00
ShareController.php refactor: Migrate IgnoreOpenAPI attributes to OpenAPI 2024-01-19 09:12:34 +01:00
ShareesAPIController.php fix(files_sharing): ShareesAPI - Return empty response when user is not allowed to share 2024-03-15 16:47:50 +00:00
ShareInfoController.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00