diff --git a/core/js/config.php b/core/js/config.php index 52405725f2..b722425346 100644 --- a/core/js/config.php +++ b/core/js/config.php @@ -74,6 +74,7 @@ $array = array( 'session_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true), 'version' => implode('.', OC_Util::getVersion()), 'versionstring' => OC_Util::getVersionString(), + 'enable_avatars' => \OC::$server->getConfig()->getSystemValue('enable_avatars', true), ) ), "oc_appconfig" => json_encode( diff --git a/core/js/share.js b/core/js/share.js index e708ed587c..692ce0b0ba 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -358,9 +358,17 @@ OC.Share={ var html = ''; html += ''; html = $(html).appendTo('#shareWithList'); - if (shareType === OC.Share.SHARE_TYPE_USER) { + if (oc_config.enable_avatars === true && shareType === OC.Share.SHARE_TYPE_USER) { $('#avatar-' + escapeHTML(shareWith)).avatar(escapeHTML(shareWith), 32); } // insert cruds button into last label element