Merge pull request #23763 from owncloud/do_not_export_share_type_2

Share type 2 is private
This commit is contained in:
Morris Jobke 2016-04-06 09:40:13 +02:00
commit 046506dd14
1 changed files with 0 additions and 2 deletions

View File

@ -144,9 +144,7 @@ class ProviderFactory implements IProviderFactory {
public function getProviderForType($shareType) {
$provider = null;
//FIXME we should not report type 2
if ($shareType === \OCP\Share::SHARE_TYPE_USER ||
$shareType === 2 ||
$shareType === \OCP\Share::SHARE_TYPE_GROUP ||
$shareType === \OCP\Share::SHARE_TYPE_LINK) {
$provider = $this->defaultShareProvider();