|
|
|
@ -1053,12 +1053,11 @@ class Manager implements IManager {
|
|
|
|
* @throws ShareNotFound
|
|
|
|
* @throws ShareNotFound
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function getShareByToken($token) {
|
|
|
|
public function getShareByToken($token) {
|
|
|
|
if(!$this->shareApiAllowLinks()) {
|
|
|
|
|
|
|
|
throw new ShareNotFound();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$share = null;
|
|
|
|
$share = null;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
if(!$this->shareApiAllowLinks()) {
|
|
|
|
|
|
|
|
throw new ShareNotFound();
|
|
|
|
|
|
|
|
}
|
|
|
|
$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_LINK);
|
|
|
|
$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_LINK);
|
|
|
|
$share = $provider->getShareByToken($token);
|
|
|
|
$share = $provider->getShareByToken($token);
|
|
|
|
} catch (ProviderException $e) {
|
|
|
|
} catch (ProviderException $e) {
|
|
|
|
|