Joas Schilling
9bf812ac6c
feat!: Migrate TagService events to typed events
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-28 14:11:18 +07:00
John Molakvoæ
a0597da460
feat(files): sort favorites first
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-07-05 16:20:33 +07:00
Joas Schilling
8b31d8204f
fix(files): Don't throw an error when guests access the controller
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-19 16:39:57 +07:00
John Molakvoæ
d7ab8da1ef
feat(files): add view config service to store user-config per view
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-18 09:02:01 +07:00
Julius Härtl
b62e29051e
fix: Always create user directory when transfering files to new users
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-04-06 20:51:56 +07:00
Michiel de Jong
c0e84cb512
Add SHARE_TYPE_SCIENCEMESH
...
Signed-off-by: Michiel de Jong <michiel@unhosted.org>
2023-03-08 16:46:55 +07:00
Joas Schilling
c02080fccb
fix(files): Fix controller setup for guests
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-28 15:34:11 +07:00
John Molakvoæ
7339355dde
Fix favourite opening
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-01-04 16:46:16 +07:00
John Molakvoæ
0a3ef8b74b
Fixing tests
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-01-04 16:46:16 +07:00
John Molakvoæ
5b9a8f0407
Add component testing
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-01-04 16:46:14 +07:00
John Molakvoæ
5c987a0ff4
Port settings to Modal
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-01-04 16:45:52 +07:00
Vincent Petry
62d47100ec
Merge pull request #30953 from nextcloud/feat/init-storage-when-transferring-ownership
...
Init user's file system if not existing on ownership transfer
2022-02-10 18:13:43 +07:00
Vincent Petry
7858fee5b5
Fix path handling when transferring incoming shares
...
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>
2022-02-10 09:50:21 +07:00
Carl Schwan
02da4ce1b0
Init user's file system if not existing on ownership transfer
...
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>
2022-02-01 13:26:41 +07:00
Vincent Petry
fa23a9f720
Do not transfer shares for deleted users
...
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>
2021-10-04 11:04:04 +07:00
Immanuel Pasanec
1f42657bb9
Added support for transfering incoming file shares.
...
- 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>
2021-08-27 17:55:58 +07:00
Christoph Wurst
ffcf27c757
Log exception message during failed ownership transfer share restore
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-08-24 09:22:30 +07:00
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +07:00
Christoph Wurst
e68c4a4ed3
Only perform login check during ownership transfer for encryption
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-19 11:25:56 +07:00
Christoph Wurst
d89a75be0b
Update all license headers for Nextcloud 21
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-16 18:48:22 +07:00
Julius Härtl
f3150f29a7
Introduce deck share type to ShareAPIController
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-09 13:20:24 +07:00
Joas Schilling
f0b46ea605
Merge pull request #22648 from nextcloud/bugfix/noid/transfer-all-shares
...
Transfer shares if no path provided
2020-09-09 13:32:43 +07:00
Julius Härtl
aa04a26c68
Transfer shares if no path provided
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-07 17:35:29 +07:00
Christoph Wurst
1f7f93a695
Update license headers for Nextcloud 20 (again)
...
There are still lots of outdated headers, so time for another round of
updates.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-09-07 14:37:44 +07:00
Julius Härtl
e0ae37745a
Do not expose direct editing if no master key is available
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-01 11:40:27 +07:00
Julius Härtl
ac2999a26a
Transfer shares of the transferred root node
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-31 14:23:34 +07:00
Christoph Wurst
2a054e6c04
Update the license headers for Nextcloud 20
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-08-24 14:54:25 +07:00
Morris Jobke
420a3762cb
Merge pull request #21797 from rawtaz/patch-1
...
Include e-mail shares when transferring ownership
2020-08-20 16:08:51 +07:00
Morris Jobke
4e297d7a97
Use constant instead of magic number
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-08-11 08:14:03 +07:00
Julius Härtl
cb2f5a829e
Do not exit if available space cannot be determined on file transfer
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-11 08:14:03 +07:00
rawtaz
97d82e2a64
Include circle shares when transferring ownership
2020-07-15 13:51:04 +07:00
rawtaz
6184604771
Include e-mail shares when transferring ownership
...
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.
2020-07-11 16:51:40 +07:00
Joas Schilling
89ed2c37bf
Update share type constant usage
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-24 16:49:16 +07:00
Christoph Wurst
cb057829f7
Update license headers for 19
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-29 11:57:22 +07:00
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
...
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>
2020-04-10 14:19:56 +07:00
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
...
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09 11:48:10 +07:00
Joas Schilling
f8a5812f98
Try to use the display name of file transfers
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-08 15:41:20 +07:00
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-31 14:52:54 +07:00
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-26 16:34:56 +07:00
Daniel Kesselberg
6235175b6d
Make TAG_FAVORITE public
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-02-12 15:11:58 +07:00
Roeland Jago Douma
5bc0951267
Allow specifying this is the first login
...
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>
2020-02-03 11:15:57 +07:00
Tobia De Koninck
055ae9b2cd
Catch \Error in Transfer::restoreShares
...
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>
2020-02-03 11:15:56 +07:00
Tobia De Koninck
97508f69ec
Prevent transferring data to user which never loggedin
...
Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
2020-02-03 11:15:56 +07:00
Tobia De Koninck
7c56144f49
Add option to transfer-ownership to move data
...
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>
2020-02-03 11:15:56 +07:00
Christoph Wurst
1b46621cd3
Update license headers for 18
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-20 09:23:25 +07:00
Sascha Wiswedel
f1319e1bc5
Transfer ownership function polishing
...
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
2019-12-17 10:38:12 +07:00
Roeland Jago Douma
4bf5a23ec0
Merge pull request #18242 from nextcloud/directEditingEditorWithId
...
add id to editor of direct editing
2019-12-05 19:48:50 +07:00
Christoph Wurst
5bf3d1bb38
Update license headers
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-05 15:38:45 +07:00
tobiasKaminsky
fdaf9aed1f
add id to editor of direct editing
...
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2019-12-05 09:45:07 +07:00
Roeland Jago Douma
50985e5461
Merge pull request #17913 from nextcloud/fix/transfer-ownership-move-files-error-handling
...
Catch file transfer error and stop transfer ownership command
2019-12-04 13:53:43 +07:00