aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Service
Commit message (Collapse)AuthorAgeFilesLines
* feat(files): sort favorites firstJohn Molakvoæ2023-07-051-1/+7
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files): Don't throw an error when guests access the controllerJoas Schilling2023-04-191-2/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(files): add view config service to store user-config per viewJohn Molakvoæ2023-04-181-0/+184
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix: Always create user directory when transfering files to new usersJulius Härtl2023-04-061-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-1/+1
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* fix(files): Fix controller setup for guestsJoas Schilling2023-02-281-9/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix favourite openingJohn Molakvoæ2023-01-041-0/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fixing testsJohn Molakvoæ2023-01-041-6/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add component testingJohn Molakvoæ2023-01-041-4/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Port settings to ModalJohn Molakvoæ2023-01-041-0/+142
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #30953 from ↵Vincent Petry2022-02-101-7/+6
|\ | | | | | | | | nextcloud/feat/init-storage-when-transferring-ownership Init user's file system if not existing on ownership transfer
| * Init user's file system if not existing on ownership transferCarl Schwan2022-02-011-7/+6
| | | | | | | | | | | | | | | | This makes it a bit easier to transfer ownership when the new user hasn't already logged in. This still doesn't support encrypted storages because the keys are not generated yet. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix path handling when transferring incoming sharesVincent Petry2022-02-101-1/+5
|/ | | | | | | | | When transferring incoming shares from a guest user without specifying a path, the $path is empty. The fix properly handles that situation to avoid looking for shares in a path with doubled slashes which failed to find shares to transfer. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Do not transfer shares for deleted usersVincent Petry2021-10-041-7/+20
| | | | | | | | | | Whenever a user was deleted but is still recipient of share entries, delete these entries upon transfer. Usually such entries would disappear after running cleanup background jobs. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Added support for transfering incoming file shares.Immanuel Pasanec2021-08-271-1/+140
| | | | | | | | | - new option --transfer-incoming-shares=1 | 0 - new config.php option 'transfer-incoming-shares' => true | false The command line option overrules the config.php option. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Log exception message during failed ownership transfer share restoreChristoph Wurst2021-08-241-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-043-6/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Only perform login check during ownership transfer for encryptionChristoph Wurst2021-03-191-2/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Introduce deck share type to ShareAPIControllerJulius Härtl2020-12-091-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #22648 from nextcloud/bugfix/noid/transfer-all-sharesJoas Schilling2020-09-091-2/+2
|\ | | | | Transfer shares if no path provided
| * Transfer shares if no path providedJulius Härtl2020-09-071-2/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
|/ | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not expose direct editing if no master key is availableJulius Härtl2020-09-011-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Transfer shares of the transferred root nodeJulius Härtl2020-08-311-3/+36
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #21797 from rawtaz/patch-1Morris Jobke2020-08-201-1/+1
|\ | | | | Include e-mail shares when transferring ownership
| * Include circle shares when transferring ownershiprawtaz2020-07-151-1/+1
| |
| * Include e-mail shares when transferring ownershiprawtaz2020-07-111-1/+1
| | | | | | E-mail shares weren't included in the processing of shares when using the `occ files:transfer-ownership` command, so they'd be lost (not visible in either the former or the new account). This commit fixes that.
* | Use constant instead of magic number Morris Jobke2020-08-111-1/+1
| | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Do not exit if available space cannot be determined on file transferJulius Härtl2020-08-111-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update share type constant usageJoas Schilling2020-06-241-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Try to use the display name of file transfersJoas Schilling2020-04-081-6/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make TAG_FAVORITE publicDaniel Kesselberg2020-02-121-3/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Allow specifying this is the first loginRoeland Jago Douma2020-02-031-2/+9
| | | | | | | On firstlogin we allow non empty target folders. So that for guest transfers the user sees the same UI. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Catch \Error in Transfer::restoreSharesTobia De Koninck2020-02-031-1/+1
| | | | | | | | | This makes the command more fault tolerant. An \Error can happen when e.g. the owner of a share is null. If we don't catch this, the restore process will stop in an unknown state. Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
* Prevent transferring data to user which never loggedinTobia De Koninck2020-02-031-1/+1
| | | | Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
* Add option to transfer-ownership to move dataTobia De Koninck2020-02-031-3/+16
| | | | | | | | This will move the home folder of own user to another user. Only allowed if that other user's home folder is empty. Can be used as workaround to rename users. Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
* Update license headers for 18Christoph Wurst2019-12-202-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Transfer ownership function polishingSascha Wiswedel2019-12-171-6/+6
| | | | Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
* Merge pull request #18242 from nextcloud/directEditingEditorWithIdRoeland Jago Douma2019-12-051-0/+1
|\ | | | | add id to editor of direct editing
| * add id to editor of direct editingtobiasKaminsky2019-12-051-0/+1
| | | | | | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
* | Update license headersChristoph Wurst2019-12-053-5/+8
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #17913 from ↵Roeland Jago Douma2019-12-041-1/+6
|\ | | | | | | | | nextcloud/fix/transfer-ownership-move-files-error-handling Catch file transfer error and stop transfer ownership command
| * Catch file transfer error and stop transfer ownership commandChristoph Wurst2019-11-271-1/+6
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>