summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use the target for file notificationsRoeland Jago Douma2020-01-241-2/+2
| | | | | | | The node is not yet accessible if you did not accept the share yet. So trying to get it results in an acception. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make auto accepting the default and provide setting to enforce the share ↵Julius Härtl2020-01-162-3/+9
| | | | | | acceptance process Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove global share accepter since auto-accepting is the defaultJulius Härtl2020-01-162-64/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Listen to the right even for auto share acceptRoeland Jago Douma2020-01-151-9/+30
| | | | 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-133-1/+5
| | | | 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-072-5/+34
| | | | | 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>
* Accept shares when you open mailRoeland Jago Douma2020-01-061-0/+83
| | | | | | | | | Fixes #18380 When you open a direct share to yourself. We should autoaccept the share. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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-204-4/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the user from the notificationRoeland Jago Douma2019-12-181-7/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow users to specify to accept (internal) shares by defaultRoeland Jago Douma2019-12-174-0/+177
| | | | | | | | | 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>
* config.php setting to always accept internal sharesRoeland Jago Douma2019-12-162-5/+69
| | | | | | Part of #18255 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>