aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller
Commit message (Collapse)AuthorAgeFilesLines
...
* | Do not use $_GETRoeland Jago Douma2020-01-051-4/+3
| | | | | | | | | | | | The appframework is more than capable of handling this properly. 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 headers for 18Christoph Wurst2019-12-201-1/+3
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Allow users to specify to accept (internal) shares by defaultRoeland Jago Douma2019-12-171-0/+54
| | | | | | | | | | | | | | | | | | Fixes #18255 A new user setting allows a user to always accept (internal) shares. For example if they don't like accepting shares manually ;) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Update license headersChristoph Wurst2019-12-058-12/+30
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Always do sharee lookup on lookup server in GSRoeland Jago Douma2019-12-051-1/+8
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | 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
* | Apply share permission mask to all files obtained via shareinfoRoeland Jago Douma2019-11-261-25/+12
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #18079 from nextcloud/fixes/phpcsRoeland Jago Douma2019-11-256-22/+25
|\ \ | | | | | | Some php-cs fixes
| * | Some php-cs fixesRoeland Jago Douma2019-11-226-22/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | Filter out duplicated shares before processing themJohn Molakvoæ (skjnldsv)2019-10-251-3/+11
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Do not return shares with the current userDaniel Calviño Sánchez2019-10-251-0/+4
| | | | | | | | | | | | | | | | Getting the shares of a file no longer returns shares with the current user for consistency with the results when getting the shares including subfiles. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Extract method to get all sharesDaniel Calviño Sánchez2019-10-251-34/+43
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add missing share types when getting shares of a fileDaniel Calviño Sánchez2019-10-251-0/+4
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Unify share type sorting when getting shares of a file or with subfilesDaniel Calviño Sánchez2019-10-251-1/+1
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Remove unneeded calls to "ShareManager::shareProviderExists()"Daniel Calviño Sánchez2019-10-251-13/+3
|/ | | | | | | | | "ShareManager::getSharesBy()" already checks if the share provider exists before returning the shares and, if the provider does not exist, it returns an empty array. Therefore it is not needed to explicitly check if the provider exists or not. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Include the share in the Files_Sharing::loadAdditionalScripts eventDaniel Calviño Sánchez2019-10-171-1/+2
| | | | | | | | This provides a better context for apps using the event, for example to load one script or another depending on whether the share is a file or a folder. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix shares read permissionsJohn Molakvoæ (skjnldsv)2019-10-041-5/+21
| | | | | | | A user with reshare permissions on a file is now able to get any share of that file (just like the owner). Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add checks for whether a user with access to a share can delete itJohn Molakvoæ (skjnldsv)2019-10-041-9/+89
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Extract check for whether a user with access to a share can edit itJohn Molakvoæ (skjnldsv)2019-10-041-1/+28
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Prevent non owners to update others link sharesJohn Molakvoæ (skjnldsv)2019-10-041-50/+50
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use same settings for mail share as link sharesJohn Molakvoæ (skjnldsv)2019-10-041-20/+13
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bye Spreed namespace, hello Talk!Joas Schilling2019-09-052-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Unify the permission checking in one place onlyJoas Schilling2019-07-031-31/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Correctly check share permissions when updating a re-sub-shareJoas Schilling2019-06-271-3/+13
| | | | | | | | | | Before this change the node you shared was checked for permissions. This works when you reshare the folder that was shared with you. However when you reshared a subfolder (e.g. as public link), you could afterwards update the permissions and grant create+update permissions although the share you receive was read-only. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix public upload by also load the semaphore methodMorris Jobke2019-05-071-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not allow JavaScript "eval" in the public share auth page with TalkDaniel Calviño Sánchez2019-04-101-2/+0
| | | | | | | | Talk no longer uses JavaScript "eval", so the Content Security Policy can now be configured to prevent its use in the public share authentication page when the password is protected by Talk. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* do not returns shared_with === currentUserMaxence Lange2019-04-011-1/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fixing share formatMaxence Lange2019-03-311-1/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* issue during last pushMaxence Lange2019-03-311-1/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* returns reshares in APIMaxence Lange2019-03-311-9/+29
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Search sharees on lookup server when explicitly requested by userChristoph Wurst2019-02-261-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #13514 from nextcloud/fix-public-grid-toggleMorris Jobke2019-02-251-0/+2
|\ | | | | Fix grid toggle button on public page
| * Fix grid toggle button on public pageJohn Molakvoæ (skjnldsv)2019-02-211-0/+2
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Show sharing recommendationsChristoph Wurst2019-02-251-1/+157
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix writable public folder shareJulius Härtl2019-02-191-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* add myself as @authorJonas Sulzer2019-01-311-0/+1
| | | | Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
* code stylingJonas Sulzer2019-01-311-2/+1
| | | | Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
* restructure codeJonas Sulzer2019-01-311-26/+23
| | | | Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
* only show "Add to your Nextcloud" on share link if federation is activatedJonas Sulzer2019-01-311-2/+14
| | | | Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
* Add caching headers for public previewsJulius Härtl2019-01-021-2/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix typo in "incoming"Joas Schilling2018-12-051-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>