aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
Commit message (Collapse)AuthorAgeFilesLines
* add activity if a file was shared by mailBjoern Schiessle2016-11-081-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* find and show share-by mail linksBjoern Schiessle2016-11-011-0/+10
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* send mail for share-by-mail sharesBjoern Schiessle2016-11-011-1/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add method to check if a share provider for a given type is loadedBjoern Schiessle2016-11-011-0/+14
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add share by mail share providerBjoern Schiessle2016-11-012-0/+52
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix merging backend resultsRoeland Jago Douma2016-11-012-2/+11
| | | | | | | | * Merge share types correctly * Filter share types * Order share types Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Stricter signatureRoeland Jago Douma2016-10-312-2/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add getShareTypesInFolder to optimize folder listeningRobin Appelman2016-10-313-0/+57
| | | | Signed-off-by: Robin Appelman <icewind@owncloud.com>
* reuse share node when creating a shareRobin Appelman2016-10-121-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Always unlock node after trying to create a shareRobin Appelman2016-10-121-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #1640 from nextcloud/less_queries_group_shareMorris Jobke2016-10-101-30/+49
|\ | | | | More efficient group share resolving
| * More efficient group share resolvingRoeland Jago Douma2016-10-061-30/+49
| | | | | | | | | | | | | | | | | | | | | | When resolving a group share to the user group share we used to do this on a per share basis. Now we try to do this for all group shares at once. Of course still chunked. Before: N incomming group shares this would mean 1 + N queries Now: N incomming roups shares this would mean 1 + 1 queries Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Prefilter inaccessible shares in DefaultShareProvider::getSharedWith()Vincent Petry2016-10-061-8/+38
|/ | | | | | | | | | | The DefaultShareProvider now does a DB-level check to find out whether file_source is accessible at all (deleted file) or whether it's in the trashbin of a home storage. One small corner case where the home storage id is in md5 form cannot be covered properly with this approach. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix othersJoas Schilling2016-07-218-18/+28
|
* Merge remote-tracking branch 'upstream/master' into master-sync-upstreamLukas Reschke2016-06-271-6/+1
|\
| * Add explicit delete permission to link sharesVincent Petry2016-06-241-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | Link shares always allowed deletion, however internally the permissions were stored as 7 which lacked delete permissions. This created an inconsistency in the Webdav permissions. This fix makes sure we include delete permissions in the share permissions, which now become 15. In case a client is still passing 7 for legacy reasons, it gets converted automatically to 15.
* | remove old hook, no longer neededBjoern Schiessle2016-06-271-13/+1
| |
* | check password for link sharesBjoern Schiessle2016-06-271-1/+16
| |
* | Merge remote-tracking branch 'upstream/master' into master-sync-upstreamLukas Reschke2016-06-211-11/+25
|\|
| * Fix case with no userRoeland Jago Douma2016-06-141-0/+4
| |
| * Optimize isSharingDisabledForuserRoeland Jago Douma2016-06-141-11/+21
| |
* | add hide file list optionBjoern Schiessle2016-06-091-1/+4
|/
* Update license headersLukas Reschke2016-05-264-2/+6
|
* use share initiator as fall back to access the fileBjörn Schießle2016-05-204-9/+28
| | | | | in case of federated re-shares the owner can be a remote user. Therefore we can't always use to owner to access the local file
* move federated sharing settings to the federatedfilesharing appBjörn Schießle2016-04-221-1/+2
|
* Fix related logicRoeland Jago Douma2016-04-191-20/+31
|
* Move post_removeFromGroup to shareManagerRoeland Jago Douma2016-04-133-0/+50
| | | | | | | | The last sharing hook to be moved over. * Added unit tests * Removed old tests that relied on old behaviour * Removed old hooks.php
* Make shareproviders use the lazy root folderRoeland Jago Douma2016-04-131-2/+2
|
* set $share to null if getShareByToken() failedBjörn Schießle2016-04-121-1/+1
|
* Migrate post_groupDelete hook to share manager (#23841)Roeland Douma2016-04-123-0/+55
| | | | | | | | The hook now calls the share manager that will call the responsible shareProvider to do the proper cleanup. * Unit tests added Again nothing should change it is just to cleanup old code
* Merge pull request #23798 from owncloud/federated-unshare-background-jobMorris Jobke2016-04-111-1/+2
|\ | | | | re-try to send unshare notification if remote server is not available
| * re-try to send unshare notification if remote server is not availableBjoern Schiessle2016-04-081-1/+2
| |
* | Set proper permissions on link shareRoeland Jago Douma2016-04-081-1/+19
| | | | | | | | | | | | | | | | If we do not allow public upload we should limit the permissions on links shares upon retrieval. * Added unit test * Allow fetching federated shares by token as well
* | Merge pull request #23773 from owncloud/share_move_delete_user_hookJoas Schilling2016-04-073-1/+103
|\ \ | |/ |/| Migrate post_userDelete hook to share manager
| * Migrate post_userDelete hook to share managerRoeland Jago Douma2016-04-043-1/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | This makes the post_userDelete hook call the sharemanager. This will cleanup to and from this user. * All shares owned by this user * All shares with this user (user) * All custom group shares * All link share initiated by this user (to avoid invisible link shares) Unit tests are added for the defaultshare provider as well as the federated share provider
* | Share type 2 is privateRoeland Jago Douma2016-04-041-2/+0
|/ | | | | | This was added to the factory for legacy reasons when converting from old to new sharing code. It is not used anymore so can be deleted. Which means we no longer expose internal types.
* Add setId and setProviderID to the public interfaceRoeland Jago Douma2016-03-301-2/+23
| | | | | | Fixes #23337 We only allow the id to be set once!
* Non moveable mount points should always be UPDATE+DELETE shareableRoeland Jago Douma2016-03-301-1/+13
| | | | | | | | | | | | Fixes #23536 The new sharing code is much stricter in checking permissions. However for non moveable mounts the permissions UPDATE+DELETE are not reported on the mount point. This is just a quick fix. * Updated unit tests
* Remove dead functionRoeland Jago Douma2016-03-231-24/+0
| | | | | This was used when we did not have lazy shares yet. Now that we no longer support legacy shares this can go.
* Remove support for old shares in the default share providerRoeland Jago Douma2016-03-231-24/+3
| | | | | | | | | In 9.0 we converted the old shares to the new shares. So for 9.1 we can savely remove the fallback code. This code was required when there was no initiator set. * Fixed unit tests
* Block group sharing in API and in share managerRoeland Jago Douma2016-03-221-0/+5
| | | | * Fix tests
* Add config to sharemanagerRoeland Jago Douma2016-03-221-0/+7
|
* Move (new) sharing over to composer autoloaderRoeland Jago Douma2016-03-207-0/+2631