summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20/Manager.php
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Fix phpDoc issuesJulius Härtl2017-10-231-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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-031-38/+8
| | | | | | | | * 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>
* Merge pull request #5797 from paulijar/share20-postUnshareFromSelfMorris Jobke2017-07-211-0/+2
|\ | | | | 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-201-0/+2
| | | | | | | | | | | | - 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-191-0/+2
| |/ |/| | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | upstreamMaxence Lange2017-07-111-1/+1
|/ | | 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 unknown share tokenJoas Schilling2017-06-131-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #4462 from danxuliu/fix-sharing-password-protected-linkRoeland Jago Douma2017-04-251-24/+31
|\ | | | | Fix sharing a password protected link
| * Extract updateSharePasswordIfNeeded functionDaniel Calviño Sánchez2017-04-241-22/+30
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Join if block to preceding if chainDaniel Calviño Sánchez2017-04-241-3/+2
| | | | | | | | | | | | | | If getShareType() returns "email" it can not also return "user", "group" nor "link", so the if block can be added to the preceding if chain. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Fix double hashing of shared link passwordsDaniel Calviño Sánchez2017-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | The plain text password for a shared links was hashed and, then, the hashed password was hashed again and set as the final password. Due to this the password introduced in the "Authenticate" page for the shared link was always a wrong password, and thus the file could not be accessed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Remove unused use statementsMorris Jobke2017-04-221-2/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Get proper accesslist for userFolderRoeland Jago Douma2017-04-201-2/+7
| | | | | | | If the accesslist is requested for a users root folder we should properly construct the path Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not set full path if not currentAccessRoeland Jago Douma2017-04-131-6/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-131-9/+28
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return the paths for the users without setting them all upJoas Schilling2017-04-131-6/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add mail element to access listRoeland Jago Douma2017-04-131-3/+11
| | | | | | | | * Each provider just returns what they have so adding an element won't require changing everything * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Offload acceslist creation to providersRoeland Jago Douma2017-04-131-38/+19
| | | | | | | | * This allows for effective queries. * Introduce currentAccess parameter to speciy if the users needs to have currently acces (deleted incomming group share). (For notifications) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Added to public interfaceRoeland Jago Douma2017-04-131-4/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add owner to access listRoeland Jago Douma2017-04-131-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add getAccessList to ShareManagerRoeland Jago Douma2017-04-131-5/+62
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* update unit testsBjoern Schiessle2017-04-071-43/+28
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* set expire date for all share typesBjoern Schiessle2017-04-031-25/+45
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add secure drop functionallity to mail sharesBjoern Schiessle2017-04-031-1/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow password protected mail sharesBjoern Schiessle2017-04-031-2/+23
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #3844 from nextcloud/unshare_eventJoas Schilling2017-03-211-38/+7
|\ | | | | Unshare event
| * Add LegacyHooksRoeland Jago Douma2017-03-171-39/+3
| | | | | | | | | | | | | | Use a helper class to listen to the eventDispatcher calls from the share manager to emit the old \OC_Hooks Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Add unshare eventRoeland Jago Douma2017-03-171-0/+5
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #3884 from nextcloud/downstream-26956Joas Schilling2017-03-201-4/+9
|\ \ | | | | | | Skip null groups in group manager
| * | Skip null groups in group manager (#26871) (#26956)Vincent Petry2017-03-171-4/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Skip null groups in group manager (#26871) * Skip null groups in group manager * Also skip null groups in group manager's search function * Add more group null checks in sharing code * Add unit tests for null group safety in group manager * Add unit tests for sharing code null group checks * Added tests for null groups handling in sharing code * Ignore moveShare optional repair in mount provider In some cases, data is inconsistent in the oc_share table due to legacy data. The mount provider might attempt to make it consistent but if the target group does not exist any more it cannot work. In such case we simply ignore the exception as it is not critical. Keeping the exception would break user accounts as they would be unable to use their filesystem. * Adjust null group handing + tests * Fix new group manager tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / shares-circlesMaxence Lange2017-03-171-1/+6
|/ | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* also create mail share if public links are disabledBjoern Schiessle2017-01-041-1/+0
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* no need to throw a exception we catch two lines laterBjoern Schiessle2016-12-221-5/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Only don't resolve public linksRoeland Jago Douma2016-12-201-4/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>