aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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>
* Handle permission in update of share betterRoeland Jago Douma2018-11-201-0/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Rollback to default list viewJohn Molakvoæ (skjnldsv)2018-11-151-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* change "Download" to "Download all files" for shared foldersJonas Sulzer2018-11-101-6/+15
| | | | | | fixes #12378 Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
* Merge pull request #12324 from ↵Morris Jobke2018-11-071-0/+4
|\ | | | | | | | | nextcloud/add-password-response-parameter-for-returning-the-password-of-link-shares Add "password" parameter to the response data of link shares
| * Add "password" parameter to the response data of link sharesDaniel Calviño Sánchez2018-11-061-0/+4
| | | | | | | | | | | | | | | | | | | | Due to legacy reasons the password of link shares was returned in the "share_with" and "share_with_displayname" parameters of the response data. Now a proper "password" parameter is returned too; the old "share_with" and "share_with_displayname" parameters are kept, although deprecated, and they will be removed in a future version of Nextcloud. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Reduce function callsMorris Jobke2018-11-071-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Adapts the code to the new master stateMichael Weimann2018-11-071-15/+23
| | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* | Inlines the share note for file dropsMichael Weimann2018-11-071-0/+1
| | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* | Inlines the share note for file dropsMichael Weimann2018-11-071-2/+1
| | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* | Hides the header actions for file dropsMichael Weimann2018-11-071-1/+0
|/ | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Add grid toggle for every files viewJohn Molakvoæ (skjnldsv)2018-11-061-0/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #12105 from nextcloud/using-resharing-right-to-display-sharesRoeland Jago Douma2018-11-041-4/+80
|\ | | | | Shares are displayed to users with resharing rights
| * user can have his resharing rights revoked, yet seeing created sharesMaxence Lange2018-11-021-6/+13
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * check parents resharing rightsMaxence Lange2018-11-021-6/+14
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * limit to circles moderatorMaxence Lange2018-11-021-1/+2
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>