Only don't resolve public links
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
5983c68462
commit
e9727440dd
|
@ -1053,12 +1053,11 @@ class Manager implements IManager {
|
|||
* @throws ShareNotFound
|
||||
*/
|
||||
public function getShareByToken($token) {
|
||||
$share = null;
|
||||
try {
|
||||
if(!$this->shareApiAllowLinks()) {
|
||||
throw new ShareNotFound();
|
||||
}
|
||||
|
||||
$share = null;
|
||||
try {
|
||||
$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_LINK);
|
||||
$share = $provider->getShareByToken($token);
|
||||
} catch (ProviderException $e) {
|
||||
|
|
Loading…
Reference in New Issue