aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller/ShareAPIController.php
Commit message (Collapse)AuthorAgeFilesLines
...
* files_sharing: Add OpenAPI specjld31032023-07-311-85/+98
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* fix: adjust testingJohn Molakvoæ2023-07-111-3/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(sharing): add sharing overview viewJohn Molakvoæ2023-07-111-1/+13
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* displayname on federated sharesMaxence Lange2023-06-281-11/+127
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Refactors "strpos" calls in /apps/files_sharing to improve code readability.Faraz Samapoor2023-06-021-1/+1
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Mutualize expireDate handling when creating and updating a shareLouis Chemineau2023-04-271-30/+19
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Update apps/files_sharing/lib/Controller/ShareAPIController.phprakekniven2023-04-181-1/+1
| | | | Co-authored-by: Valdnet <47037905+Valdnet@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* fix(l10n): Fixed grammarrakekniven2023-04-181-1/+1
| | | | | | | | Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-4/+67
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Honor permissions of new link share via OCS APIJan-Philipp Litza2022-12-061-3/+8
| | | | | | | | | | | The API currently overrides the supplied permissions with "read only" when a file is shared via link. It allows to update the permissions later, however. This keeps the default to "read only" but honors the permissions supplied by API call if any. Signed-off-by: Jan-Philipp Litza <jpl@plutex.de>
* Merge pull request #34502 from nextcloud/fix/correct-attribute-resharingCarl Schwan2022-10-201-28/+24
|\ | | | | Propagate attributes when resharing
| * Small progress with fixing unit testsCarl Schwan2022-10-111-2/+5
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Propagate attributes when resharingCarl Schwan2022-10-101-27/+20
| | | | | | | | | | | | | | When updating a share, load the node from the initiator instead of the owner similar to how this is done when creating the share. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix permission not being intCarl Schwan2022-10-171-1/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix exception getCode typeCarl Schwan2022-10-171-2/+2
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix type when getting appconfig with intCarl Schwan2022-10-171-1/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | More flexible date validationCarl Schwan2022-10-111-1/+1
|/ | | | | | Fix #34542 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* includeTags -> include_tagstobiasKaminsky2022-09-281-2/+2
| | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
* Update apps/files_sharing/lib/Controller/ShareAPIController.phpTobias Kaminsky2022-09-211-2/+4
| | | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Tobias Kaminsky <tobias@nextcloud.com>
* Show include tags on single sharetobiasKaminsky2022-09-191-1/+1
| | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
* Add includeTags to /share/idtobiasKaminsky2022-09-191-1/+7
|
* Merge pull request #33941 from nextcloud/fix/public-sharingCarl Schwan2022-09-151-1/+3
|\ | | | | Only normalize data in public shares and not crud
| * Only normalize data in public shares and not crudCarl Schwan2022-09-081-1/+3
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix typos in apps/ subdirectoryluz paz2022-09-051-2/+2
|/ | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Multiple fixesCarl Schwan2022-07-311-26/+41
| | | | | | | | | | | - 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>
* Enforcing permission during resharingCarl Schwan2022-07-281-8/+9
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Inherit hide download from share attributesVincent Petry2022-07-281-0/+27
| | | | | | | 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>
* Don't reset share attributes when not specifiedVincent Petry2022-07-281-2/+6
| | | | | | When not specified in the OCS call, don't reset the share attributes. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix share attribute related tests + code styleVincent Petry2022-07-281-18/+25
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix share controller to accept share attributes aloneVincent Petry2022-07-281-2/+5
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-281-0/+31
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #32741 from nextcloud/Valdnet-patch-2Joas Schilling2022-06-101-8/+8
|\ | | | | l10n: Delete apostrophe
| * l10n: Delete apostropheValdnet2022-06-071-8/+8
| | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | Various improvements related to the recent implementation of temporary passwordsCyrille Bollu2022-06-081-1/+1
|/ | | | | | | | | | | | | | | for mail shares: 1- Changes style of "forgot password?" and "Back" button 2- Adds information about share password's expiration time in the emails sent. 3- Shows password expiration time in the Share menu 4- Fixes an issue when the message "Password expires..." would be shown for non email share types (which don't have temporary passswords) 5- At share's creation, password should only be sent when it's a permanent one See also https://github.com/nextcloud/server/issues/31952 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Properly reset pw expirationVincent Petry2022-04-131-36/+0
| | | | | | | When requesting a new password for share by mail link, now we correctly reset the expiration date. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-111-0/+37
| | | | | | | | | | | | | | | | | | 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>
* Merge pull request #31684 from nextcloud/user-share-permissions-mergeSimon L2022-04-051-11/+22
|\ | | | | take permissions from multiple paths into account for share permissions
| * take permissions from multiple paths into account for share permissionsRobin Appelman2022-03-311-11/+22
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #31240 from nextcloud/Valdnet-patch-3Louis2022-03-311-1/+1
|\ \ | |/ |/| l10n: Add a dot
| * l10n: Delete dotValdnet2022-02-171-2/+2
| | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
| * l10n: Add a dotValdnet2022-02-171-1/+1
| | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | l10n: Spelling unification in Transifex.Valdnet2022-03-181-3/+3
|/ | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Support CRUD share permissionsLouis Chemineau2022-02-151-10/+17
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Limit more contact searchesJoas Schilling2021-12-081-2/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to pass note when creating a share and send it with directly in the ↵Julius Härtl2021-12-031-0/+5
| | | | | | share mail when set Signed-off-by: Julius Härtl <jus@bitgrid.net>
* use specific email getter where necessaryArthur Schiwon2021-09-091-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update "Sending password by Nextcloud Talk failed" sentenceszaimen2021-07-071-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* l10n: Unify spellingValdnet2021-05-201-1/+1
| | | Spelling unification in Nextcloud applications.
* Merge pull request #26580 from castillo92/patch-2Morris Jobke2021-05-181-2/+2
|\ | | | | Fix casing of exception string