summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
Commit message (Collapse)AuthorAgeFilesLines
* Provide the proper language to the mailerRoeland Jago Douma2020-04-161-2/+2
| | | | | | | Else we can't properly translate the footer in the recipients e-mail language. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #19936 from ↵Joas Schilling2020-04-141-2/+6
|\ | | | | | | | | nextcloud/bugfix/noid/handle-unset-owner-in-sharing Handle unset owner in sharing
| * Handle unset owner in sharingJoas Schilling2020-03-131-2/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #20181 from nextcloud/bugfix/noid/dont-break-on-path-nullJoas Schilling2020-04-141-1/+1
|\ \ | | | | | | Also bail out when the path is actually null
| * | Also bail out when the path is actually nullJoas Schilling2020-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | Apparently this can happen when a external mount was shared that is later not available anymore Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Add visibility to all constantsChristoph Wurst2020-04-101-1/+1
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Format control structures, classes, methods and functionChristoph Wurst2020-04-108-51/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 elseif instead of else ifChristoph Wurst2020-04-103-37/+37
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-093-5/+5
| | | | | | | | | | | | 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>
* | | Fix (array) indent style to always use one tabChristoph Wurst2020-04-092-4/+4
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-1/+1
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-272-2/+0
|\ \ \ | | | | | | | | Remove unused imports
| * | | Remove unused importsChristoph Wurst2020-03-252-2/+0
| |/ / | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / / Use the short array syntax, everywhereChristoph Wurst2020-03-262-4/+4
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Expose enumeration config though share managerJulius Härtl2020-03-201-0/+9
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update the target when it isempty after sharingRoeland Jago Douma2020-03-161-0/+5
|/ | | | | | | Hooks that listen to it (audit log) benefit from having the target properly set. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Strip of users home path from share api messageJoas Schilling2020-02-201-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure the default share provider does not execute for other thingsJoas Schilling2020-01-281-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Accept shares when you open mailRoeland Jago Douma2020-01-061-1/+1
| | | | | | | | | Fixes #18380 When you open a direct share to yourself. We should autoaccept the share. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* config.php setting to always accept internal sharesRoeland Jago Douma2019-12-161-12/+19
| | | | | | Part of #18255 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #17935 from nextcloud/feature/noid/public-auth-for-circlesRoeland Jago Douma2019-12-111-2/+3
|\ | | | | adding share type circles
| * using IShare::Maxence Lange2019-12-051-3/+3
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * adding share type circlesMaxence Lange2019-12-051-1/+2
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Update license headersChristoph Wurst2019-12-0510-11/+26
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Actualy return dataRoeland Jago Douma2019-11-271-8/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow internal shares to have a default expiration dateRoeland Jago Douma2019-11-272-5/+141
| | | | | | | | * Needs admin UI * Needs more checks * Basics seem to work Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add typed events for password_policyChristoph Wurst2019-11-271-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-2210-17/+24
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* FixesRoeland Jago Douma2019-11-181-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* The share manager knows which provider can accept sharesJoas Schilling2019-11-121-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to accept group sharesJoas Schilling2019-11-122-26/+123
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add the notifier and the API endpoint for user sharesJoas Schilling2019-11-121-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Respect the accepted flag for group and user sharesJoas Schilling2019-11-122-0/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #17735 from tcoupin/fix-reshare-circleChristoph Wurst2019-11-041-0/+1
|\ | | | | Fix reshare with circle
| * Fix reshare with circleThibault Coupin2019-10-291-0/+1
| | | | | | | | Signed-off-by: Thibault Coupin <thibault.coupin@gmail.com>
* | Get all shares as iterableRoeland Jago Douma2019-10-302-0/+33
|/ | | | | | | | | | | | Sometimes we need all shares or rather a specific subset of shares but creating dedicated functions is a pain. This just returns an iterable object for all shares so we can loop over them without allocating all the memory on the system. It should not be used by any user called code. But in an occ command or background job it is fine IMO. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix l10n in federated file sharingChristoph Wurst2019-09-191-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Bye Spreed namespace, hello Talk!Joas Schilling2019-09-051-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add expiration event for sharesJohn Molakvoæ (skjnldsv)2019-08-212-2/+9
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix permission check on incoming federated sharesJulius Härtl2019-07-311-2/+3
| | | | | | | | Since federated shares have their permissions set on the node, we do not need to check for parent share permissions. Otherwise reshares of incoming federated have no permission variable defined and creating them will fail Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Always set the display name for user sharesJulius Härtl2019-07-031-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Unify the permission checking in one place onlyJoas Schilling2019-07-031-9/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Better check reshare permissions when creating a shareJoas Schilling2019-07-031-3/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #15832 from ↵Roeland Jago Douma2019-06-251-0/+3
|\ | | | | | | | | nextcloud/bugfix/noid/fulltext-search-groupfolders Fix full text search for groupfolders
| * Fix full text search for groupfoldersMorris Jobke2019-06-171-0/+3
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Add event dispatcher to OCPChristoph Wurst2019-06-252-8/+11
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update lib/private/Share20/Manager.php Morris Jobke2019-03-201-1/+1
| | | | | tabulator change Co-Authored-By: aignerat <46312655+aignerat@users.noreply.github.com>
* Update lib/private/Share20/Manager.php Morris Jobke2019-03-201-1/+1
| | | | | fixed tabulator Co-Authored-By: aignerat <46312655+aignerat@users.noreply.github.com>
* groupname like username - allow share with bothChristian Aigner2019-03-201-2/+2
| | | | Signed-off-by: Christian Aigner <christian.aigner@huemer-it.com>