aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20/DefaultShareProvider.php
Commit message (Collapse)AuthorAgeFilesLines
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-1/+1
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* hide shared files located in group folder's trash binArthur Schiwon2023-03-281-0/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* composer run cs:fixCôme Chilliet2023-01-201-5/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Show group name instead of group id as recommendationJoas Schilling2022-10-081-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use bigger slice in share providerCarl Schwan2022-08-161-2/+2
| | | | | | | | Probably won't make a big difference as it is unlikely a user has > 100 shares but this make sure we use the same code in spreed where the change has a bigger impact. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Multiple fixesCarl Schwan2022-07-311-8/+6
| | | | | | | | | | | - Fix tests - Use non deprecated event stuff - Add a bit of type hinting to the new stuff - More safe handling of instanceOfStorage (share might not be the first wrapper) - Fix resharing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Inherit hide download from share attributesVincent Petry2022-07-281-0/+2
| | | | | | | When resharing by link, if the download permission was removed through share attributes, convert it to the hide download flag. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Attempt to fix sqlite json issueVincent Petry2022-07-281-2/+2
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-281-0/+66
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix typos in lib/private subdirectoryluz paz2022-07-271-1/+1
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* Add argument to getSharesInFolder enable deep share lookupLouis Chemineau2022-07-261-7/+16
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Prevent column name conflict between tablesLouis Chemineau2022-07-261-1/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix getting shares in a folder on OracheCarl Schwan2022-05-121-7/+18
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* fix shared mount roots not being returned from `getSharesInFolder`Robin Appelman2022-03-311-1/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Check style updateCarl Schwan2022-01-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Allow to pass note when creating a share and send it with directly in the ↵Julius Härtl2021-12-031-0/+4
| | | | | | share mail when set Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix warning about passing null to substr_countCôme Chilliet2021-11-231-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add proper message to created share not foundJohn Molakvoæ (skjnldsv)2021-08-181-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* gracefully handle deleteFromSelf when share is already goneArthur Schiwon2021-03-301-1/+2
| | | | | | - handling race conditions Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #24103 from ↵Morris Jobke2020-11-191-1/+1
|\ | | | | | | | | nextcloud/bugfix/noid/groupfolder-share-object-storage Only check path for being accessible when the storage is a object home
| * Only check path for being accessible when the storage is a object homeJulius Härtl2020-11-131-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Empty string is returned as null, but empty string in file cache is the root ↵Joas Schilling2020-11-101-1/+6
|/ | | | | | and exists Signed-off-by: Joas Schilling <coding@schilljs.com>
* fixes potential passing of null to getUserGroupIdsArthur Schiwon2020-10-161-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use the new method everywhereJoas Schilling2020-07-031-4/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update share type constant usageJoas Schilling2020-06-241-60/+60
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix language in share notes email for usersJoas Schilling2020-06-231-26/+33
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove unused use statementMorris Jobke2020-05-081-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* get only groupids in default share backendRobin Appelman2020-05-041-7/+2
| | | | | | instead of getting the full group object and then only using the id anyway Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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-101-25/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-101-16/+16
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-3/+3
| | | | | | | | 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-271-1/+0
|\ \ | | | | | | Remove unused imports
| * | Remove unused importsChristoph Wurst2020-03-251-1/+0
| |/ | | | | | | 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 sure the default share provider does not execute for other thingsJoas Schilling2020-01-281-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-051-1/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow internal shares to have a default expiration dateRoeland Jago Douma2019-11-271-0/+10
| | | | | | | | * Needs admin UI * Needs more checks * Basics seem to work Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-11/+12
| | | | | | | | | | | * 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>
* Allow to accept group sharesJoas Schilling2019-11-121-26/+99
| | | | 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-121-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Get all shares as iterableRoeland Jago Douma2019-10-301-0/+26
| | | | | | | | | | | | 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>