summaryrefslogtreecommitdiffstats
path: root/lib/public/Share
Commit message (Collapse)AuthorAgeFilesLines
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-0/+5
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Pluggable share providerLouis Chemineau2023-02-022-0/+77
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* composer run cs:fixCôme Chilliet2023-01-2011-11/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix checkpassword undocummented null parameterCarl Schwan2022-10-171-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix view-only code after code review commentsVincent Petry2022-07-281-2/+4
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix share attribute related tests + code styleVincent Petry2022-07-282-8/+8
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-282-1/+94
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add argument to getSharesInFolder enable deep share lookupLouis Chemineau2022-07-262-10/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Recursively fetch subsharesLouis Chemineau2022-07-261-0/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use email settings in DAV searchLouis Chemineau2022-04-191-1/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use share setting in DAV searchLouis Chemineau2022-04-191-0/+8
| | | | | | shareapi_restrict_user_enumeration_full_match_ignore_second_display_name was introduced to ignore second display name during search from the share panel. But this setting was not respected by search from the calendar application. This fix it. Signed-off-by: Louis Chemineau <louis@chmn.me>
* Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-111-0/+13
| | | | | | | | | | | | | | | | | | shares of type TYPE_EMAIL, when the "video verification" checkbox isn't checked. Users accessing non-anonymous public shares (TYPE_EMAIL shares) can now request a temporary password themselves. - Creates a migration step for the files_sharing app to add the 'password_expiration_time' attribute to the oc_shares table. - Makes share temporary passwords' expiration time configurable via a system value. - Adds a system config value to allow permanent share passwords -Fixes a typo in a comment in apps/files_sharing/src/components/SharingEntryLink.vue See https://github.com/nextcloud/server/issues/31005 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
* Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-1/+3
| | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Clarify that some interface are not meant to be implementedCarl Schwan2022-03-041-1/+5
| | | | | | | | | This make sure that apps don't implement this interfaces and gives us more liberty to add new methods to them (as long as it is compatible from an usage point of view) Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com>
* Move common logic to share managerJoas Schilling2021-11-091-0/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Default message for ShareNotFound exceptionJohn Molakvoæ (skjnldsv)2021-08-181-0/+14
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Migrate HintException to OCPGary Kim2021-06-301-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0412-20/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* update public interface with new methodsRobin Appelman2021-05-121-0/+48
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove duplicated query for email sharesDaniel Calviño Sánchez2021-03-221-1/+1
| | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Add a setting to restrict returning a full match unless in phonebook or same ↵Joas Schilling2021-03-101-0/+8
| | | | | | group Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restrict autocompletion also based on the phonebook known usersJoas Schilling2021-03-101-0/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* send share notification instead of erroring on duplicate shareRobin Appelman2021-03-091-0/+50
| | | | | | when creating a share that already exists, instead of erroring, resend the notifications Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix docblock return type for IShareProviderRoeland Jago Douma2021-03-021-1/+1
| | | | | | | All the implementations already returned an array of array of shares. So better to make sure the docblock also doesn't lie. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move to single share event. Just emit more if neededRoeland Jago Douma2020-12-231-21/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* cs fixMaxence Lange2020-12-231-3/+3
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* +ShareDeletedEventMaxence Lange2020-12-231-0/+80
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Address minor commentsJulius Härtl2020-12-091-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add internal DECK_USER type to allow unsharing for individual usersJulius Härtl2020-12-091-0/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add share type for deckJulius Härtl2020-12-091-0/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow apps to register their share providers from outsideJulius Härtl2020-12-092-0/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove @package annotations from public namespaceJulius Härtl2020-08-266-6/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove wrongly annotated package namesJulius Härtl2020-08-261-1/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Always sort shares in a reliable wayJoas Schilling2020-06-081-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-4/+2
| | | | | | | | | | | | | | | 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-0/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Expose enumeration config though share managerJulius Härtl2020-03-201-0/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow to overwrite share target mountpointsJoas Schilling2020-02-171-0/+83
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 18Christoph Wurst2019-12-201-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* config.php setting to always accept internal sharesRoeland Jago Douma2019-12-161-0/+53
| | | | | | Part of #18255 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-058-8/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-224-1/+4
| | | | | | | | | | | * 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>
* Only restrict loading of group and user shares for nowJoas Schilling2019-11-121-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to accept group sharesJoas Schilling2019-11-122-0/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Respect the accepted flag for group and user sharesJoas Schilling2019-11-121-0/+34
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>