aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller/ShareAPIController.php
Commit message (Collapse)AuthorAgeFilesLines
...
| * Update ShareAPIController.phpcastillo922021-04-161-2/+2
| | | | | | | | | | Change to capital letters in an abbreviation. Signed-off-by: castillo92 javiercizquierdo@gmail.com
* | l10n: Change to a capital letterValdnet2021-04-271-1/+1
|/ | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Implement expiration date for federated sharesVincent Petry2021-04-151-0/+24
| | | | | | | | | Add expiration date field in UI. Save expiration date when creating or updating federated share. Read expiration date from DB in federated share provider. Applies to both federated user and group shares. 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>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-111-2/+1
| | | | | | 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-161-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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-091-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Introduce deck share type to ShareAPIControllerJulius Härtl2020-12-091-4/+64
| | | | 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>
* Indicate preview availability in share api responsesRichard Steinmetz2020-10-131-1/+7
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Merge pull request #22393 from nextcloud/fix/license-headers-20Roeland Jago Douma2020-08-241-0/+3
|\ | | | | Update the license headers for Nextcloud 20
| * Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+3
| | | | | | | | 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-141-2/+2
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add user input for link share labelsGary Kim2020-07-141-0/+3
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* 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-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-7/+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 elseif instead of else ifChristoph Wurst2020-04-101-18/+18
| | | | 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>
* Don't try to format deleted sharesRoeland Jago Douma2020-03-021-0/+10
| | | | | | | | | | | | Fixes #15455 The issue is that we have a fallback for shares to use the target. So when the target exists again we happily format it (not that the shares are still invalid). This just tries to get the node. If we can't then boom. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't show link shares hash in inherited share listRoeland Jago Douma2020-01-151-2/+2
| | | | | | This adds no value at all. Just showing the text "(Shared link)" now. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix license headersChristoph Wurst2020-01-131-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* moving ->getParent earlierMaxence Lange2020-01-081-1/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Add pending share list to frontendJulius Härtl2020-01-071-5/+25
| | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* A pending shares overviewRoeland Jago Douma2020-01-071-0/+30
| | | | | | | | Now that we accept shares we should show an overview of shares that are pending. This first part is the small API to get a list of the currently pending shares. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* confirm resharing rights if viewer is current ownerMaxence Lange2020-01-021-0/+4
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Update license headersChristoph Wurst2019-12-051-3/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fixing tests + avoid duplicate in getFormattedShares()Maxence Lange2019-12-031-4/+7
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* integration testsMaxence Lange2019-12-031-8/+12
| | | | | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com> add tests on non-owner pov Signed-off-by: Maxence Lange <maxence@artificial-owl.com> duplicate Signed-off-by: Maxence Lange <maxence@artificial-owl.com> small fixes Signed-off-by: Maxence Lange <maxence@artificial-owl.com> removed tags Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Inherited SharesMaxence Lange2019-12-031-49/+271
| | | | | | | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com> working on users with resharing rights Signed-off-by: Maxence Lange <maxence@artificial-owl.com> -getLogger() Signed-off-by: Maxence Lange <maxence@artificial-owl.com> cleaning Signed-off-by: Maxence Lange <maxence@artificial-owl.com> fix type Signed-off-by: Maxence Lange <maxence@artificial-owl.com> Update SharingRightsException.php
* Merge pull request #18079 from nextcloud/fixes/phpcsRoeland Jago Douma2019-11-251-6/+6
|\ | | | | Some php-cs fixes
| * Some php-cs fixesRoeland Jago Douma2019-11-221-6/+6
| | | | | | | | | | | | | | | | | | | | | | * 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>
* | Get first element of nodes arraywaleczny2019-11-181-1/+1
|/ | | Geting first element of nodes array instead of element with key 0. In some cases key 0 not exists in this array ie. when file is shared from group folder with member of this group who have no permission to read this file.
* The share manager knows which provider can accept sharesJoas Schilling2019-11-121-5/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to accept group sharesJoas Schilling2019-11-121-9/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add the notifier and the API endpoint for user sharesJoas Schilling2019-11-121-0/+39
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix current user edit/delete permissionsJohn Molakvoæ (skjnldsv)2019-10-291-0/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Unify code to get shares of a file or also including subfilesJohn Molakvoæ (skjnldsv)2019-10-251-39/+21
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>