diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-11 21:55:42 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-11-02 13:44:45 +0100 |
commit | 1fd640b40b9129b6b285bcab4ba085129a50836e (patch) | |
tree | d5b918a55f67330dfef90c62fe7cca097bc7efcd | |
parent | df4fa2695e2e4b50e86f5eec8dc8f56810f1be2e (diff) | |
download | nextcloud-server-1fd640b40b9129b6b285bcab4ba085129a50836e.tar.gz nextcloud-server-1fd640b40b9129b6b285bcab4ba085129a50836e.zip |
Expose the backend of IUser
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r-- | lib/private/User/User.php | 4 | ||||
-rw-r--r-- | lib/public/IUser.php | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php index e171a65f8ce..06dd47b0887 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -302,6 +302,10 @@ class User implements IUser { return get_class($this->backend); } + public function getBackend() { + return $this->backend; + } + /** * check if the backend allows the user to change his avatar on Personal page * diff --git a/lib/public/IUser.php b/lib/public/IUser.php index 3d8515a5e03..a3d7c6b71a6 100644 --- a/lib/public/IUser.php +++ b/lib/public/IUser.php @@ -109,6 +109,13 @@ interface IUser { public function getBackendClassName(); /** + * Get the backend for the current user object + * + * @since 15.0.0 + */ + public function getBackend(); + + /** * check if the backend allows the user to change his avatar on Personal page * * @return bool |