diff options
author | tomneedham <tom@owncloud.com> | 2013-12-11 09:12:47 +0000 |
---|---|---|
committer | tomneedham <tom@owncloud.com> | 2013-12-11 09:12:47 +0000 |
commit | 7afe6b349352f90bec5a8409bf5c23494f808f1a (patch) | |
tree | c0e4294c123a42b519ac168259a113efadbebed7 /lib/private/user/user.php | |
parent | 37b07fe6a9e512214852584fb15056f008509882 (diff) | |
parent | 28180485d9d767a081656e403fe7c8210957f976 (diff) | |
download | nextcloud-server-7afe6b349352f90bec5a8409bf5c23494f808f1a.tar.gz nextcloud-server-7afe6b349352f90bec5a8409bf5c23494f808f1a.zip |
Merge branch 'master' into fix-5388-master
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 |