File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
app/code/Magento/Backend/view/adminhtml/templates/dashboard/totalbar Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
7
+ /** @var \Magento\Backend\Block\Template $block */
8
+ /** @var \Magento\Framework\Escaper $escaper */
6
9
?>
7
10
<div class="page-actions">
8
11
<div class="page-actions-inner">
9
12
<div class="page-actions-buttons">
10
13
<?= $ block ->getChildHtml () ?>
11
14
15
+ <?php if ($ block ->getAuthorization ()->isAllowed ('Magento_Reports::statistics ' )): ?>
12
16
<form class="action-element"
13
- action="<?= $ block ->escapeUrl ($ block ->getUrl ('*/*/refreshStatistics ' )) ?> "
17
+ action="<?= $ escaper ->escapeUrl ($ block ->getUrl ('*/*/refreshStatistics ' )) ?> "
14
18
method="post">
15
19
<input
16
20
name="form_key"
17
21
type="hidden"
18
- value="<?= $ block ->escapeHtmlAttr ($ block ->getFormKey ()) ?> "/>
22
+ value="<?= $ escaper ->escapeHtmlAttr ($ block ->getFormKey ()) ?> "/>
19
23
<button
20
24
class="action-primary"
21
25
type="submit"
22
- title="<?= $ block ->escapeHtmlAttr (__ ('Reload Data ' )) ?> ">
23
- <?= $ block ->escapeHtml (__ ('Reload Data ' )) ?>
26
+ title="<?= $ escaper ->escapeHtmlAttr (__ ('Reload Data ' )) ?> ">
27
+ <?= $ escaper ->escapeHtml (__ ('Reload Data ' )) ?>
24
28
</button>
25
29
</form>
30
+ <?php endif ; ?>
26
31
</div>
27
32
</div>
28
33
</div>
You can’t perform that action at this time.
0 commit comments