Skip to content

Commit 496eb09

Browse files
author
Joan He
committed
Merge remote-tracking branch 'origin/MAGETWO-83183-update-access-denied' into MAGETWO-83013-ReleaseNotification
2 parents afa2d19 + 6ac280d commit 496eb09

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

app/code/Magento/Backend/i18n/en_US.csv

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,13 @@ YTD,YTD
214214
"Admin session lifetime must be greater than or equal to 60 seconds","Admin session lifetime must be greater than or equal to 60 seconds"
215215
Order,Order
216216
"Order #%1","Order #%1"
217-
"Access denied","Access denied"
218-
"Please try to sign out and sign in again.","Please try to sign out and sign in again."
219-
"If you continue to receive this message, please contact the store owner.","If you continue to receive this message, please contact the store owner."
220217
"You need more permissions to access this.","You need more permissions to access this."
218+
"Sorry, you need permissions to view this content.","Sorry, you need permissions to view this content."
219+
"Next steps","Next steps"
220+
"If you think this is an error, try signing out and signing in again.","If you think this is an error, try signing out and signing in again."
221+
"Contact a system administrator or store owner to gain permissions.","Contact a system administrator or store owner to gain permissions."
222+
"Return to","Return to"
223+
"previous page","previous page"
221224
"Welcome, please sign in","Welcome, please sign in"
222225
Username,Username
223226
"user name","user name"

app/code/Magento/Backend/view/adminhtml/templates/admin/access_denied.phtml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,21 @@
99
?>
1010
<?php
1111
/**
12-
* @see \Magento\Backend\Block\Denied
12+
* @see \Magento\Backend\Block\Template
1313
*/
1414
?>
1515
<hr class="access-denied-hr"/>
1616
<div class="access-denied-page">
1717
<h2 class="page-heading"><?= $block->escapeHtml(__('Sorry, you need permissions to view this content.')) ?></h2>
18-
<?php if (!$block->hasAvailableResources()): ?>
19-
<strong><?= $block->escapeHtml(__('Next steps')) ?></strong>
20-
<ul>
21-
<li><span><?= $block->escapeHtml(__('If you think this is an error, try signing out and signing in again.')) ?></span></li>
22-
<li><span><?= $block->escapeHtml(__('Contact a system administrator or store owner to gain permissions.')) ?></span></li>
23-
<li>
24-
<span><?= $block->escapeHtml(__('Return to ')) ?>
25-
<a href="<?= $block->escapeHtmlAttr(__('javascript:history.back()')) ?>">
26-
<?= $block->escapeHtml(__('previous page')) ?></a><?= $block->escapeHtml(__('.')) ?>
27-
</span>
28-
</li>
29-
</ul>
30-
<?php else: ?>
31-
<p><?= $block->escapeHtml(__('Access denied.')) ?></p>
32-
<?php endif?>
18+
<strong><?= $block->escapeHtml(__('Next steps')) ?></strong>
19+
<ul>
20+
<li><span><?= $block->escapeHtml(__('If you think this is an error, try signing out and signing in again.')) ?></span></li>
21+
<li><span><?= $block->escapeHtml(__('Contact a system administrator or store owner to gain permissions.')) ?></span></li>
22+
<li>
23+
<span><?= $block->escapeHtml(__('Return to ')) ?>
24+
<a href="<?= $block->escapeHtmlAttr(__('javascript:history.back()')) ?>">
25+
<?= $block->escapeHtml(__('previous page')) ?></a><?= $block->escapeHtml(__('.')) ?>
26+
</span>
27+
</li>
28+
</ul>
3329
</div>

0 commit comments

Comments
 (0)