nextcloud-server/apps/files_sharing/lib
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 +07:00
..
Activity fix(activity): make emails for link share uploads true by default 2024-12-06 14:51:39 +07:00
AppInfo feat(files_sharing): add public name prompt for files requests 2024-07-18 20:15:39 +07:00
BackgroundJob fix(BackgroundJobs): Adjust intervals and time sensitivities 2024-11-25 08:38:58 +07:00
Collaboration chore: Add SPDX header 2024-06-06 22:53:41 +07:00
Command fix(sharing): add command to fix broken shares after ownership transferring 2024-12-12 07:15:50 +07:00
Controller fix(files_sharing): Respect permissions passed when creating link shares 2025-01-31 18:21:26 +07:00
Event chore: Add SPDX header 2024-06-06 22:53:41 +07:00
Exceptions chore: Add SPDX header 2024-06-06 22:53:41 +07:00
External fix(files_sharing): Check if propfind response is valid before accessing share permission props 2024-09-26 14:23:55 +07:00
Listener feat(files_sharing): add public name prompt for files requests 2024-07-18 20:15:39 +07:00
Middleware chore: Add SPDX header 2024-06-06 22:53:41 +07:00
Migration chore: Add SPDX header 2024-06-06 22:53:41 +07:00
Notification feat(notifications): Migrate server INotifiers to new exceptions 2024-06-25 11:56:24 +07:00
Settings chore: Add SPDX header 2024-06-06 22:53:41 +07:00
ShareBackend chore: Add SPDX header 2024-06-06 22:53:41 +07:00
Cache.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
Capabilities.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
DefaultPublicShareTemplateProvider.php feat(files_sharing): add public name prompt for files requests 2024-07-18 20:15:39 +07:00
DeleteOrphanedSharesJob.php chore: Apply php:cs recommendations 2024-08-28 14:54:14 +07:00
ExpireSharesJob.php fix(BackgroundJobs): Adjust intervals and time sensitivities 2024-11-25 08:38:58 +07:00
Helper.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
Hooks.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
ISharedMountPoint.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
ISharedStorage.php feat: Make `ISharedStorage` public API and reuse where possible 2024-08-12 11:42:10 +07:00
MountProvider.php feat(files_sharing): allow mixed values in share attributes and allow storing email arrays 2024-07-12 20:14:30 +07:00
OrphanHelper.php fix(sharing): add command to fix broken shares after ownership transferring 2024-12-12 07:15:50 +07:00
ResponseDefinitions.php revert: "fix(files_sharing): Make share labels nullable" 2024-10-14 17:11:16 +07:00
Scanner.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
SharedMount.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
SharedStorage.php perf: improve performance of SharedStorage::getWatcher 2024-12-03 14:17:02 +07:00
Updater.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00
ViewOnly.php chore: Add SPDX header 2024-06-06 22:53:41 +07:00