mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 19:32:28 -04:00
add getOwner impementation to Home Storage
This commit is contained in:
parent
98db90ba70
commit
65fa896bc2
1 changed files with 10 additions and 0 deletions
|
|
@ -63,4 +63,14 @@ class Home extends Local {
|
|||
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->getUser()->getUID();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue