mirror of
https://github.com/nextcloud/server.git
synced 2026-07-05 12:34:39 +02:00
Deny access for non-users and add a (not-working) override button
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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; ?>
|
||||
|
||||
Reference in New Issue
Block a user