]> source.dussan.org Git - nextcloud-server.git/commitdiff
Expose the backend of IUser
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 11 Oct 2018 19:55:42 +0000 (21:55 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 2 Nov 2018 12:44:45 +0000 (13:44 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/User/User.php
lib/public/IUser.php

index e171a65f8ce7f21af77c77a8109d77d8aac6daea..06dd47b088759737c900c9af5cdfc2ce9ad251ca 100644 (file)
@@ -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
         *
index 3d8515a5e03538586f809c5d90fafa9e50122a75..a3d7c6b71a66cd38104c8bcd14c75d4bf6ffc120 100644 (file)
@@ -108,6 +108,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
         *