Deny access for non-users and add a (not-working) override button

This commit is contained in:
kondou 2013-08-17 17:47:10 +02:00
parent 9c12da6a94
commit cd2f7bdaef
2 changed files with 6 additions and 0 deletions

View file

@ -6,6 +6,11 @@
require_once 'lib/base.php';
if (!\OC_User::isLoggedIn()) {
header("HTTP/1.0 403 Forbidden");
\OC_Template::printErrorPage("Permission denied");
}
$mode = \OC_Avatar::getMode();
if ($mode === "none") {
exit();

View file

@ -96,6 +96,7 @@ if($_['passwordChangeSupported']) {
<div class="inlineblock button" id="removeavatar"><?php p($l->t('Remove my image')); ?></div>
<?php elseif ($_['avatar'] === "gravatar"): ?>
<em><?php p($l->t('Your profile image is provided by gravatar, which is based on your Email.')); ?></em>
<div class?"inlineblock button" id="overridegravatar"><?php p($l->t('Use my local avatar instead')); ?></div>
<?php else: ?>
<em><?php p($l->t('Your profile image is provided by a custom service, ask your administrator, on how to change your image.')); ?></em>
<?php endif; ?>