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.
This commit is contained in:
parent
a0e2eae7de
commit
d3959ee152
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue