summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
Commit message (Collapse)AuthorAgeFilesLines
* Do not update child all child shares on group share updateRoeland Jago Douma2018-12-041-0/+1
| | | | | | | Else we overwrite the whole share for link shares. Basically breaking them. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #12105 from nextcloud/using-resharing-right-to-display-sharesRoeland Jago Douma2018-11-041-6/+8
|\ | | | | Shares are displayed to users with resharing rights
| * revert testsMaxence Lange2018-11-021-5/+7
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * shares are displayed to users with resharing rightsMaxence Lange2018-11-021-11/+11
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Store "sendPasswordByTalk" property of link shares in the databaseDaniel Calviño Sánchez2018-11-021-0/+4
|/ | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* allow to update lables for public link sharesBjoern Schiessle2018-11-011-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow to add labels to sharesBjoern Schiessle2018-11-012-1/+24
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Propegate hide download state in share providerRoeland Jago Douma2018-10-301-0/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Extend IShare to show hide download stateRoeland Jago Douma2018-10-301-0/+13
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use numeric placeholders if there are multiple, so that RTL languages can ↵Joas Schilling2018-10-091-4/+4
| | | | | | operate better Signed-off-by: Joas Schilling <coding@schilljs.com>
* tokens can't be valid local user namesRobin Appelman2018-08-161-0/+4
| | | | | | this saves searching for shares on non-public link dav requests Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add support for tokens in room sharesDaniel Calviño Sánchez2018-08-081-0/+9
| | | | | | | | | | Tokens will be used to give access to a share to guests in public rooms. Although the token itself is created in the provider of room shares and no changes are needed for that, due to the code structure it is necessary to explicitly call the provider from the manager when getting a room share by token. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add support for room shares to the share managerDaniel Calviño Sánchez2018-08-081-0/+1
| | | | | | | | | | | Room shares are implemented in an external app (Nextcloud Talk), so in order to keep the share manager as isolated as possible from room share specifics all the validity checks are done in the provider of room shares. However, due to the code structure it is necessary to explicitly check for room shares in "generalCreateChecks" to prevent an exception from being thrown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add provider for room sharesDaniel Calviño Sánchez2018-08-081-0/+34
| | | | | | | | | The RoomShareProvider is provided by the Talk app, so it is necessary to check whether the app is available or not, and also whether the class itself exists or not (just in case an older version of the app that did not have support yet for room shares is being used). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Honour "sendPasswordByTalk" property in mail sharesDaniel Calviño Sánchez2018-07-241-1/+11
| | | | | | | | | | | | | | | | | When a password was set for a mail share an e-mail was sent to the recipient with the password. Now the e-mail is no longer sent if the password is meant to be sent by Talk. However, before the e-mail was not sent when the share was updated but the password was not changed. Now an e-mail is sent in that case too if switching from a password sent by Talk to a password sent by mail. On the other hand, when switching from a password sent by mail to a password sent by Talk it is mandatory to change the password; otherwise the recipient would already have access to the share without having to call the sharer to verify her identity. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add "sendPasswordByTalk" property to sharesDaniel Calviño Sánchez2018-07-241-0/+17
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* some small template fixesBjoern Schiessle2018-07-211-2/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow 'note' to be nullBjoern Schiessle2018-07-211-1/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add a nice looking button as direct link to the sharreBjoern Schiessle2018-07-211-9/+7
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add direct link to the file for user/group sharesBjoern Schiessle2018-07-212-5/+20
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix mail templatesBjoern Schiessle2018-07-211-3/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add note to share object when reading it from the dbBjoern Schiessle2018-07-211-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* improve mail template and escape html codeBjoern Schiessle2018-07-211-12/+5
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow to add a personal note to a shareBjoern Schiessle2018-07-213-2/+151
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* 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>