diff options
author | Josh <josh.t.richards@gmail.com> | 2025-06-08 14:25:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-08 14:25:32 -0400 |
commit | c49b3b27ffab4800faf12961472c1a9c2c05f0f4 (patch) | |
tree | 84f34671c6c5c9edccc1c2177109a3c8192090ff | |
parent | d76a940ff85a48629e4aec075f1093b3a9ba5fdd (diff) | |
download | nextcloud-server-jtr-fix-403-design.tar.gz nextcloud-server-jtr-fix-403-design.zip |
fix(403): Make design consistent with 404 + add default hintjtr-fix-403-design
Fixes #39584
Signed-off-by: Josh <josh.t.richards@gmail.com>
-rw-r--r-- | core/templates/403.php | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/core/templates/403.php b/core/templates/403.php index 17866e670af..dc34c8d854f 100644 --- a/core/templates/403.php +++ b/core/templates/403.php @@ -14,9 +14,17 @@ if (!isset($_)) {//standalone page is not supported anymore - redirect to / } // @codeCoverageIgnoreEnd ?> -<div class="guest-box"> +<div class="body-login-container update"> + <div class="icon-big icon-password"></div> <h2><?php p($l->t('Access forbidden')); ?></h2> - <p class='hint'><?php if (isset($_['message'])) { - p($_['message']); - }?></p> -</ul> + <p class="hint"> + <?php if (isset($_['message'])): ?> + <?php p($_['message']); ?> + <?php else: ?> + <?php p($l->t('You are not allowed to access this page.')); ?> + <?php endif; ?> + </p> + <p><a class="button primary" href="<?php p(\OCP\Server::get(\OCP\IURLGenerator::class)->linkTo('', 'index.php')) ?>"> + <?php p($l->t('Back to %s', [$theme->getName()])); ?> + </a></p> +</div> |