aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller
Commit message (Collapse)AuthorAgeFilesLines
...
* Use correct getSystemValue typeJ0WI2021-04-121-1/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Map old account scope properties to new namesVincent Petry2021-03-261-1/+1
| | | | | | | | Use new scope values in settings page. Adjust all consumers to use the new constants. Map old scope values to new ones in account property getter. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Remove duplicated query for email sharesDaniel Calviño Sánchez2021-03-221-2/+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 labels to mail sharesJohn Molakvoæ (skjnldsv)2021-03-221-7/+6
| | | | | | Now the email is shown on a second line if a label is set. Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Log exceptions when creating shareVincent Petry2021-03-151-0/+2
| | | | | | | | | | | Because the exceptions don't always contain a useful message for the UI, but also because in some cases we need to find out what went wrong. In some setups, a ShareNotFoundException might happen during creation when we try to re-read the just written share. Usually related to Galera Cluster where node syncing wait is not enabled. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix invalid check after constructing DateTimeRoeland Jago Douma2021-03-081-4/+0
| | | | | | | | | We construct an object. Either that works on not.But the result can't be false. Found by psalm Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-2/+2
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-112-3/+2
| | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-164-2/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use a consistent default value for sharing.maxAutocompleteResultsArthur Schiwon2020-12-151-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Show unique displayname context in the user share list entriesJulius Härtl2020-12-141-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Address minor commentsJulius Härtl2020-12-092-4/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Introduce deck share type to ShareAPIControllerJulius Härtl2020-12-092-5/+91
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Let sharees endpoint properly handle deck sharesJulius Härtl2020-12-091-0/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* circleId too short in some requestMaxence Lange2020-11-131-3/+4
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Return correct error message on share download without read permissionMorris Jobke2020-10-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Indicate preview availability in share api responsesRichard Steinmetz2020-10-131-1/+7
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Show filename on share link downloadJohn Molakvoæ (skjnldsv)2020-09-171-1/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #22393 from nextcloud/fix/license-headers-20Roeland Jago Douma2020-08-242-0/+4
|\ | | | | Update the license headers for Nextcloud 20
| * Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-0/+4
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix missing FN from federated contactJohn Molakvoæ (skjnldsv)2020-08-241-1/+1
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #22109 from nextcloud/feature/20931/followup-1John Molakvoæ2020-08-171-1/+21
|\
| * Expose status via Collaborators APIGeorg Ehrke2020-08-141-1/+21
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Fix some MissingDocblockType or InvalidDocblock warnings.Daniel Kesselberg2020-08-142-3/+3
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add BeforeTemplateRenderedEvent for files_sharingJulius Härtl2020-07-151-12/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add user input for link share labelsGary Kim2020-07-141-0/+3
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update share type constant usageJoas Schilling2020-06-242-5/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix reference to wrong class nameDaniel Calviño Sánchez2020-05-291-3/+3
| | | | | | | \OCP\IShare does not exist; the right name is \OCP\Share\IShare, although it is already imported as IShare. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Have share permissions on link shares if it is enabledRoeland Jago Douma2020-05-151-9/+10
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not filter id matching userId on non-user-share sharesJohn Molakvoæ (skjnldsv)2020-05-051-4/+5
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix federated link sharing permissionsJohn Molakvoæ (skjnldsv)2020-05-041-60/+71
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Allow to navigate to others with access from the sidebarRoeland Jago Douma2020-04-291-2/+21
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Update license headers for 19Christoph Wurst2020-04-294-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19793 from nextcloud/bugfix/noid/link-to-federated-reshareMorris Jobke2020-04-271-5/+8
|\ | | | | Fix resharing of federated shares that were created out of links
| * Link shares have reshare permission if outgoing federated shares are enabledJulius Härtl2020-04-211-5/+8
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #17623 from j3l11234/masterRoeland Jago Douma2020-04-241-0/+1
|\ \ | | | | | | Add support for download share on old android browser
| * | Add support for download share on old android browserj3l112342019-10-211-0/+1
| | | | | | | | | | | | Signed-off-by: j3l11234 <297259024@qq.com>
* | | make php-cs happyRobin Appelman2020-04-231-1/+0
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Fix Sharing recommendation user displayJohn Molakvoæ (skjnldsv)2020-04-211-29/+30
| |/ |/| | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* | Also disallow ; in remote urlsJoas Schilling2020-04-141-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Format control structures, classes, methods and functionChristoph Wurst2020-04-107-21/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-21/+21
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20391 from nextcloud/refactor/spaces-cleanupChristoph Wurst2020-04-091-1/+1
|\ \ | | | | | | Remove all extra whitespace PSR2 does not like
| * | Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #20384 from nextcloud/techdebt/lowercase-keywordsChristoph Wurst2020-04-091-1/+1
|\ \ \ | |/ / |/| | Use php keywords in lowercase
| * | Use php keywords in lowercaseChristoph Wurst2020-04-091-1/+1
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-3/+3
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix multiline commentsChristoph Wurst2020-04-081-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove user name from public sharing pageJoas Schilling2020-04-011-5/+25
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update the license headers for Nextcloud 19Christoph Wurst2020-03-313-0/+3
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>