Return the proper owner for home storages
This commit is contained in:
parent
61598e7bb5
commit
e9de20952a
1 changed files with 10 additions and 0 deletions
|
@ -66,4 +66,14 @@ class Home extends Local implements \OCP\Files\IHomeStorage {
|
|||
public function getUser() {
|
||||
return $this->user;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the owner of a path
|
||||
*
|
||||
* @param string $path The path to get the owner
|
||||
* @return string uid or false
|
||||
*/
|
||||
public function getOwner($path) {
|
||||
return $this->user->getUID();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue