mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 01:50:33 -04:00
Deny access for non-users and add a (not-working) override button
This commit is contained in:
parent
9c12da6a94
commit
cd2f7bdaef
2 changed files with 6 additions and 0 deletions
|
|
@ -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; ?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue