diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-04-04 09:00:06 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-04-04 09:00:06 +0200 |
commit | d3959ee1526d550e2d0c6e8e2d951635047e9cb9 (patch) | |
tree | 559773131bd36efb9ab0e54b3f4336ca04a9cfff /lib/private/Share20 | |
parent | a0e2eae7de06ce31026ab0fbca9e86f8938bcd44 (diff) | |
download | nextcloud-server-d3959ee1526d550e2d0c6e8e2d951635047e9cb9.tar.gz nextcloud-server-d3959ee1526d550e2d0c6e8e2d951635047e9cb9.zip |
Share type 2 is private
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.
Diffstat (limited to 'lib/private/Share20')
-rw-r--r-- | lib/private/Share20/ProviderFactory.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php index 4cb1ac71a88..96203104f74 100644 --- a/lib/private/Share20/ProviderFactory.php +++ b/lib/private/Share20/ProviderFactory.php @@ -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(); |