summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix(sharing): Align wording for declining a shareJoas Schilling2024-03-191-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(files_sharing): ShareesAPI - Return empty response when user is not ↵Ferdinand Thiessen2024-03-151-24/+9
| | | | | | | | allowed to share Resolves: https://github.com/nextcloud/server/issues/20950 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #43832 from nextcloud/backport/43428/stable27John Molakvoæ2024-02-291-1/+4
|\
| * feat(share): save date and time for expirationBenjamin Gaussorgues2024-02-261-1/+4
| | | | | | | | | | | | | | | | Because of timezones, not saving time can lead to unexpected behaviour when sharing an item sooner than timezone offset Example: sharing a file before 9am when in UTC+9 Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | fix: only cleanup orphaned shared dalyRobin Appelman2024-02-261-8/+2
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use `@nextcloud/capabilities` to obtain share api defaultsfenn-cs2024-02-041-7/+0
| | | | | | | | - Remove redundant initial state added - Call `getCapabilities()` in share config file. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Consider admin defaults when creating sharesfenn-cs2024-02-041-0/+1
| | | | | | | | | | The current share logic always uses the default `BUNDLED_PERMISSIONS.ALL` which includes everything. This commit updates share creation logic to use `defaultPermissions` if set by admin for the creation of new shares. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(share): use user timezone to parse share expiration dateBenjamin Gaussorgues2024-01-151-16/+5
| | | | | | | | | | If an user in UTC+1 try to create a share at 00:00, it's day D for him, but D-1 for the server (UTC). This fix aims to apply the correct offset Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* add more checks to ensure mounts aren't emptyRobin Appelman2023-12-051-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Also cleanup orphaned shares user cannot be found anymoreJulius Härtl2023-11-211-1/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #41363 from nextcloud/optmize-storage-wrappers-27Benjamin Gaussorgues2023-11-163-2/+31
|\ | | | | [27] optimize builtin storage wrappers
| * optimize builtin storage wrappersRobin Appelman2023-11-093-2/+31
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(sharing): set name to target name in sharing cacheMax2023-10-231-0/+4
|/ | | | | | Fixes #39879. Signed-off-by: Max <max@nextcloud.com>
* ocm servicesMaxence Lange2023-09-223-54/+75
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Enfore allowPublicShares admin settingfenn-cs2023-09-131-2/+21
| | | | | | | Use the the modern intial-state library to pass data about `allowPublicUploads` to the sharing frontend. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Merge pull request #40074 from nextcloud/backport/39944/stable27Andy Scherzinger2023-08-312-5/+14
|\ | | | | [stable27] pass the share to the cache instead of having to ask the storage
| * pass the share to the cache instead of having to ask the storageRobin Appelman2023-08-282-5/+14
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(cache): Remove displayname cache entry on deleteJoas Schilling2023-08-281-0/+4
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(notifications): Remove share notification when the node is deletedJoas Schilling2023-08-041-0/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* display displayname on federated sharesMaxence Lange2023-07-113-15/+134
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* add command do delete orphan sharesRobin Appelman2023-07-102-0/+182
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* repair -1 folder sizes for object store background scanRobin Appelman2023-05-101-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Mutualize expireDate handling when creating and updating a shareLouis Chemineau2023-04-271-30/+19
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Merge pull request #37525 from nextcloud/file-debug-infoRobin Appelman2023-04-211-0/+7
|\ | | | | add command for getting fileinfo for debugging
| * add command for getting fileinfo for debuggingRobin Appelman2023-04-171-0/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Update apps/files_sharing/lib/Controller/ShareAPIController.phprakekniven2023-04-181-1/+1
| | | | | | | | Co-authored-by: Valdnet <47037905+Valdnet@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* | fix(l10n): Fixed grammarrakekniven2023-04-181-1/+1
|/ | | | | | | | Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* Fix inherited parameter namesjld31032023-04-031-6/+6
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-084-6/+104
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Avoid extra parenthesis around SQL in IN expressionsCôme Chilliet2023-02-211-5/+5
| | | | | | | | The expression builder already suround the SQL with parenthesis when using in(), so we must not add another pair, this confuses at least sqlite. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #36515 from nextcloud/fix/sharees-remove-deckJulius Härtl2023-02-161-10/+1
|\
| * Remove Deck from Sharees APIjld31032023-02-031-10/+1
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | fix(sharing): Remove casting to int from INFJoas Schilling2023-02-071-1/+1
| | | | | | | | | | | | | | Regression from nextcloud/server#35736 INF is a the float INF, casting it to integer will make it 0 Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #36452 from nextcloud/perf/share-availability-checkVincent Petry2023-02-032-11/+16
|\ \ | |/ |/| perf(federation): Only request root share info for checking availability
| * chore: Add return typesJulius Härtl2023-01-311-5/+6
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * perf(federation): Only request root share info for checking availabilityJulius Härtl2023-01-312-9/+13
| | | | | | | | | | | | Otherwise this would request a full recursive dirctory listing while the result is never being used Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Pluggable share providerLouis Chemineau2023-02-022-217/+325
|/ | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* still include the share target in the cache key for validating share mountRobin Appelman2023-01-161-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix cache key used to verify shared mountpointsRobin Appelman2023-01-091-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Port Files navigation to vueJohn Molakvoæ2023-01-041-1/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #35213 from PLUTEX/32611-ocs-api-share-permissionsJulius Härtl2022-12-221-3/+8
|\ | | | | Honor permissions of new link share via OCS API
| * Honor permissions of new link share via OCS APIJan-Philipp Litza2022-12-061-3/+8
| | | | | | | | | | | | | | | | | | | | | | The API currently overrides the supplied permissions with "read only" when a file is shared via link. It allows to update the permissions later, however. This keeps the default to "read only" but honors the permissions supplied by API call if any. Signed-off-by: Jan-Philipp Litza <jpl@plutex.de>
* | Merge pull request #34807 from nextcloud/fix/compute-notification-parsed-subjectCôme Chilliet2022-12-192-27/+3
|\ \ | | | | | | Compute notification parsed subject from rich subject when possible
| * | Get rid of all useless calls to setParsedSubject now that setRichSubject is ↵Côme Chilliet2022-11-292-27/+3
| | | | | | | | | | | | | | | | | | able to do it Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #35596 from nextcloud/fix/move-to-ocp-timedjobCôme Chilliet2022-12-062-5/+10
|\ \ \ | | | | | | | | Use TimedJob from OCP instead of OC
| * | | Use TimedJob from OCP instead of OCCôme Chilliet2022-12-052-5/+10
| |/ / | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #35400 from ↵Côme Chilliet2022-12-051-3/+5
|\ \ \ | |/ / |/| | | | | | | | nextcloud/fix/remove-unused-dynamic-var-in-files_sharing Fix name of dymanic var $mountOptions to fix PHP 8.2 compatibility
| * | Put back the variable but make sure it is properly declaredCôme Chilliet2022-12-051-1/+6
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Remove dymanic var $mountOptions to fix PHP 8.2 compatibilityCôme Chilliet2022-11-241-3/+0
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* / Add group display name cacheAnna Larch2022-11-281-0/+3
|/ | | | Signed-off-by: Anna Larch <anna@nextcloud.com>