summaryrefslogtreecommitdiffstats
path: root/lib/private/user
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-10 11:56:45 +0100
committerLukas Reschke <lukas@owncloud.com>2014-12-10 11:56:45 +0100
commit5398bbdc003a93f8652b7c7a88bc80e7710996c9 (patch)
tree17094823bcdeea09393f8f0d03ca1c28016dc8ca /lib/private/user
parentdd4ef58297f5f87284177f579ef69a200112bb67 (diff)
parent7a290a3d6b779a624700ee3d264d3a87cb38b08b (diff)
downloadnextcloud-server-5398bbdc003a93f8652b7c7a88bc80e7710996c9.tar.gz
nextcloud-server-5398bbdc003a93f8652b7c7a88bc80e7710996c9.zip
Merge pull request #12711 from owncloud/add-backend-to-rest-index
Expose backend type via REST API
Diffstat (limited to 'lib/private/user')
-rw-r--r--lib/private/user/user.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/user/user.php b/lib/private/user/user.php
index 00ded84f955..062081d51d4 100644
--- a/lib/private/user/user.php
+++ b/lib/private/user/user.php
@@ -220,6 +220,15 @@ class User implements IUser {
}
/**
+ * Get the name of the backend class the user is connected with
+ *
+ * @return string
+ */
+ public function getBackendClassName() {
+ return get_class($this->backend);
+ }
+
+ /**
* check if the backend allows the user to change his avatar on Personal page
*
* @return bool