Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Expose the backend of IUser
Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer committed Nov 2, 2018
commit 1fd640b40b9129b6b285bcab4ba085129a50836e
4 changes: 4 additions & 0 deletions lib/private/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ public function getBackendClassName() {
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
*
Expand Down
7 changes: 7 additions & 0 deletions lib/public/IUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ public function getHome();
*/
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
*
Expand Down