add getId to shared storage backend

This commit is contained in:
Robin Appelman 2012-09-23 01:51:00 +02:00
parent 6fafd5d4e9
commit f360d7c736
1 changed files with 5 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Shared extends \OC\Files\Storage\Common {
* @param string Shared target file path
* @return Returns CRUDS permissions granted or false if not found
*/
private function getPermissions($target) {
public function getPermissions($target) {
$file = $this->getFile($target);
if (isset($file['permissions'])) {
return $file['permissions'];
@ -449,4 +449,8 @@ class Shared extends \OC\Files\Storage\Common {
//TODO
return false;
}
public function getId(){
return 'shared::' . $this->sharedFolder;
}
}