diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-11-22 13:24:11 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-11-22 13:25:20 +0100 |
commit | 8ccac86c9893fe0af1715288ce29d85091bca9aa (patch) | |
tree | 8c704a9156ad7485a187a5ec6d14f19c112870cc /lib/private/user/user.php | |
parent | 54f0deff2ae60b2914f2cd1f20e7bcb23726edac (diff) | |
download | nextcloud-server-8ccac86c9893fe0af1715288ce29d85091bca9aa.tar.gz nextcloud-server-8ccac86c9893fe0af1715288ce29d85091bca9aa.zip |
Enable user backends to provide avatar images
Diffstat (limited to 'lib/private/user/user.php')
-rw-r--r-- | lib/private/user/user.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/user/user.php b/lib/private/user/user.php index e5f842944f1..e773473ec41 100644 --- a/lib/private/user/user.php +++ b/lib/private/user/user.php @@ -140,6 +140,18 @@ class User { } /** + * check if the backend allows the user to change his avatar on Personal page + * + * @return bool + */ + public function canChangeAvatar() { + if($this->backend->implementsActions(\OC_USER_BACKEND_PROVIDE_AVATAR)) { + return $this->backend->canChangeAvatar($this->uid); + } + return true; + } + + /** * check if the backend supports changing passwords * * @return bool |