Remove unused legacy method
This commit is contained in:
parent
65f41020c5
commit
f74d273145
10
lib/file.php
10
lib/file.php
@ -220,16 +220,6 @@ class File {
|
|||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getLocalFileOwnerAndPath(){
|
|
||||||
$fileInfo = \OC\Files\Cache\Cache::getById($this->fileId);
|
|
||||||
$owner = \OCP\User::getUser();
|
|
||||||
if (!$owner){
|
|
||||||
throw new Exception('Guest users can\'t access local files. This one was probably unshared recently.');
|
|
||||||
}
|
|
||||||
|
|
||||||
return array ($owner, @$fileInfo[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getPassword(){
|
protected function getPassword(){
|
||||||
return $this->sharing[0]['share_with'];
|
return $this->sharing[0]['share_with'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user