summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fetch the share for the recipientRoeland Jago Douma2019-12-091-2/+6
| | | | | | | | | | Fixes #18020 For group shares your invite might be handled but that doesn't mean the whole share is handled. So we just need to make sure to fetch the share for the current user. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-0557-69/+107
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Expose capability if the lookup server should be queried by defaultRoeland Jago Douma2019-12-051-0/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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-032-49/+311
| | | | | | | | | | | | | | | | | 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
* Fix testsJohn Molakvoæ (skjnldsv)2019-12-021-1/+0
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Create sharing entry point with constantsJohn Molakvoæ (skjnldsv)2019-12-021-0/+7
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix files_sharing app LoadSidebar eventJohn Molakvoæ (skjnldsv)2019-12-023-11/+181
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add capabilitiesRoeland Jago Douma2019-11-271-0/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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-2519-41/+45
|\ | | | | Some php-cs fixes
| * Some php-cs fixesRoeland Jago Douma2019-11-2219-41/+45
| | | | | | | | | | | | | | | | | | | | | | * 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.
* FixesRoeland Jago Douma2019-11-181-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make sure the super share also has a valid typeJoas Schilling2019-11-121-3/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix "Invalid parameter number: mixed named and positional parameters"Joas Schilling2019-11-121-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Correctly use the displayname of the sharer in the notificationJoas Schilling2019-11-121-6/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* The share manager knows which provider can accept sharesJoas Schilling2019-11-121-5/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use constants for the magic stringsJoas Schilling2019-11-122-8/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Accept existing shares on updateJoas Schilling2019-11-121-0/+79
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only restrict loading of group and user shares for nowJoas Schilling2019-11-121-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add notifications for users that are added to the groupJoas Schilling2019-11-122-3/+51
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to accept group sharesJoas Schilling2019-11-123-30/+85
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Notifications for group sharesJoas Schilling2019-11-121-1/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add the notifier and the API endpoint for user sharesJoas Schilling2019-11-124-5/+222
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Respect the accepted flag for group and user sharesJoas Schilling2019-11-122-2/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add notification for shares about to expireRoeland Jago Douma2019-11-013-0/+201
| | | | | | | Introduces a new command that will create notifications for users if they have shares that will expire the next day. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* Move over OCSShareAPIMIddleware to pure DIRoeland Jago Douma2019-10-161-8/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* List share download activity under sharingJoas Schilling2019-10-101-2/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.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>
* Merge pull request #17021 from nextcloud/bye-spreed-hello-talkJoas Schilling2019-09-112-4/+4
|\ | | | | Bye Spreed namespace, hello Talk!
| * Bye Spreed namespace, hello Talk!Joas Schilling2019-09-052-4/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Correctly check for new default rootJoas Schilling2019-09-041-3/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Properly initialize the CacheJail for sharingJulius Härtl2019-09-031-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add expiration event for sharesJohn Molakvoæ (skjnldsv)2019-08-212-1/+21
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>