summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5280 from nextcloud/shared-with-display-nameMorris Jobke2018-07-131-0/+40
|\ | | | | sharedWithDisplayName & sharedWithAvatar
| * SharedWithDisplayName + SharedWithAvatarMaxence Lange2018-05-211-0/+40
| | | | | | | | | | Signed-off-by: Maxence Lange <maxence@nextcloud.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | fix selection of share providerBjoern Schiessle2018-07-121-1/+1
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | implement federated group sharesBjoern Schiessle2018-07-112-2/+14
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | getDeletedSharedWith methodJohn Molakvoæ (skjnldsv)2018-07-051-0/+19
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Add API to undelete delete group sharesRoeland Jago Douma2018-07-052-0/+45
| | | | | | | | | | | | | | | | | | | | | | When a group share is deleted we keep track of this in the DB. Right now it is only possible for a recipient to get back the share by asking the sharer to delete it and to share it again. This doesn't scale. This endpoint makes it possible to get back the share. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | use new API to send a federated share if possibleBjoern Schiessle2018-07-021-1/+3
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | start implementing federated sharing 2.0Bjoern Schiessle2018-07-021-2/+2
|/ | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #8026 from ↵Joas Schilling2018-02-261-1/+1
|\ | | | | | | | | nextcloud/feature/noid/allow-custom-html-in-html-emails Allow custom HTML in HTML Emails
| * Fix existing usagesJoas Schilling2018-02-151-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Remove unused import statementsMorris Jobke2018-02-141-1/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class statement instead of stringMorris Jobke2018-01-292-8/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not instantiate node when not neededRoeland Jago Douma2018-01-091-3/+3
| | | | | | | | | Use the lazy functions is possible. This avoids getting the node if not required. Possible fix for #7751 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Only in case of $currentAccess the array uses the id as indexJoas Schilling2017-11-281-1/+7
| | | | | | | | | | | | | Otherwise its a normal string[] with the user ids, in that case the array_merge did it's job just fine, apart from it not being deduplicated. The array+array is only needed when the user id is the key, so integer only user ids are kept as they are instead of being reindexed. Regression from 3820d6883dffcaa49deb1054ae0f32ab3d3e39b1 Signed-off-by: Joas Schilling <coding@schilljs.com>
* Proper handle null cases and default to trueLukas Reschke2017-11-271-1/+4
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add support for `\OCP\Share\IShare::getMailSend` backLukas Reschke2017-11-272-18/+23
| | | | | | This adds back the support for `\OCP\Share\IShare::getMailSend`, one example is creating bulk shares via API which where previously blocking due to the share notification emails. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix accesslist when a user has an ID only containting 0-9Joas Schilling2017-11-141-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersMorris Jobke2017-11-066-0/+24
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge branch 'master' into autocomplete-guiArthur Schiwon2017-11-011-1/+1
|\
| * Doc: Fix phpDoc issuesJulius Härtl2017-10-231-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | AutoCompletion backendArthur Schiwon2017-10-221-1/+1
|/ | | | | | | | | | * introduce a Controller for requests * introduce result sorting mechanism * extend Comments to retrieve commentors (actors) in a tree * add commenters sorter * add share recipients sorter Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Set the data from the templateJoas Schilling2017-10-181-3/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Set the subject with the email template to allow themingJoas Schilling2017-10-181-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* do not show hyphen after instance name in emails if slogan does not existStephan Müller2017-09-251-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Improve sharing paginationRoeland Jago Douma2017-09-151-0/+5
| | | | | | | Basically we did in almost all cases did a query to much. This resulted in an extra query for each share type. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use the language of the recipient for the share notificationJoas Schilling2017-09-081-8/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge setMetaData into constructorJoas Schilling2017-09-041-2/+1
| | | | | | This ensures that the meta data is set in the beginning Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add shareWith to email template metadataMorris Jobke2017-08-291-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow the expiration date to be set to nullMorris Jobke2017-08-281-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6255 from nextcloud/email-meta-dataMorris Jobke2017-08-261-2/+11
|\ | | | | Add meta information to emails for better customisation
| * Add meta information to emails for better customisationJoas Schilling2017-08-241-2/+11
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | link to getShareByTokenMaxence Lange2017-08-201-0/+9
|/ | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Move pre_shared and post_shared events to EventDispatcherRoeland Jago Douma2017-08-032-38/+65
| | | | | | | | * Now listeners for those events get proper share objects. * Legacy hooks still fired * Updated tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use IUserLukas Reschke2017-08-021-0/+1
| | | | | | | | This is broken and will never work as the phan CI step pointed out. Pro-tip of the day: Check why CI fails before merging :see_no_evil: Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Send an email once a file/folder is shared with a userMorris Jobke2017-07-281-1/+100
| | | | | | | * only if user has set an email address * only for user shares (no group shares for now) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* More phpstorm inspection fixesRoeland Jago Douma2017-07-241-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #5797 from paulijar/share20-postUnshareFromSelfMorris Jobke2017-07-212-0/+17
|\ | | | | Dispatch event postUnshareFromSelf when the recipient of a share unshares it
| * Emit hook postUnshareFromSelf when the recipient of a share unshares itPauli Järvinen2017-07-202-0/+17
| | | | | | | | | | | | - This kind of hook signal used to be emitted in the old Share library but it was missing from Share 2.0 Signed-off-by: Pauli Järvinen <pauli.jarvinen@gmail.com>
* | Merge pull request #5734 from nextcloud/only-readable-chars-in-share-tokensJoas Schilling2017-07-191-6/+2
|\ \ | | | | | | Only use readable chars in Share Tokens
| * | Only use readable chars in Share TokensJoas Schilling2017-07-181-6/+2
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Run phan over code baseLukas Reschke2017-07-192-0/+4
| |/ |/| | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Fix emitting of legacy hook post_unsharePauli Järvinen2017-07-161-1/+1
| | | | | | | | | | | | - When a file was unshared, the legacy hook pre_unshare fired twice and the hook post_unshare did not fire at all. This was obviously a copy-paste error. Signed-off-by: Pauli Järvinen <pauli.jarvinen@gmail.com>
* | upstreamMaxence Lange2017-07-112-6/+12
|/ | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* Improve wording of various error messagesJan-Christoph Borchardt2017-06-211-20/+20
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Fix 500 Internal Server Error on writingJan-Philipp Litza2017-06-161-1/+1
| | | | | | | | | | | | | | | | | | | In some not yet completely determined configurations, the following error could occur while writing a file: Error: Call to a member function getUsers() on null /var/www/nextcloud/lib/private/Share20/Manager.php - line 1277: OC\Share20\DefaultShareProvider->getAccessList(Array, true) /var/www/nextcloud/lib/private/Share20/ShareHelper.php - line 51: OC\Share20\Manager->getAccessList(Object(OC\Files\Node\Folder), true, true) /var/www/nextcloud/apps/activity/lib/FilesHooks.php - line 616: OC\Share20\ShareHelper->getPathsForAccessList(Object(OC\Files\Node\File)) /var/www/nextcloud/apps/activity/lib/FilesHooks.php - line 196: OCA\Activity\FilesHooks->getUserPathsFromPath('/path/to/file', 'user') /var/www/nextcloud/apps/activity/lib/FilesHooks.php - line 157: OCA\Activity\FilesHooks->addNotificationsForFileAction('/path/to/file', 'file_changed', 'changed_self', 'changed_by') /var/www/nextcloud/apps/activity/lib/FilesHooksStatic.php - line 55: OCA\Activity\FilesHooks->fileUpdate('/path/to/file') /var/www/nextcloud/lib/private/legacy/hook.php - line 106: OCA\Activity\FilesHooksStatic fileUpdate(Array) /var/www/nextcloud/lib/private/Files/View.php - line 1245: OC_Hook emit('OC_Filesystem', 'post_update', Array) /var/www/nextcloud/lib/private/Files/View.php - line 1173: OC\Files\View->runHooks(Array, '/path/to/file', true) /var/www/nextcloud/lib/private/Files/View.php - line 679: OC\Files\View->basicOperation('file_put_conten...', '/path/to/file', Array, '<?xml version="...') /var/www/nextcloud/lib/private/Files/Node/File.php - line 64: OC\Files\View->file_put_contents('/path/to/file', '<?xml version="...') [...] Signed-off-by: Jan-Philipp Litza <janphilipp@litza.de>
* Fix unknown share tokenJoas Schilling2017-06-131-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* filter missing groups in share providerRobin Appelman2017-06-121-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add new config switched for the global scale architectureBjoern Schiessle2017-05-291-1/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #4462 from danxuliu/fix-sharing-password-protected-linkRoeland Jago Douma2017-04-251-24/+31
|\ | | | | Fix sharing a password protected link