-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
magento packaging service
committed
Oct 3, 2024
1 parent
017ec8b
commit ccc675d
Showing
496 changed files
with
11,961 additions
and
3,979 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
app/code/Magento/AdminNotification/Block/Grid/MassAction/MarkAsReadVisibility.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento\AdminNotification\Block\Grid\MassAction; | ||
|
||
use Magento\AdminNotification\Controller\Adminhtml\Notification\MarkAsRead; | ||
use Magento\Backend\Block\Widget\Grid\Massaction\VisibilityCheckerInterface; | ||
use Magento\Framework\AuthorizationInterface; | ||
|
||
/** | ||
* Class checks if mark as read action can be displayed on massaction list | ||
*/ | ||
class MarkAsReadVisibility implements VisibilityCheckerInterface | ||
{ | ||
/** | ||
* @var AuthorizationInterface | ||
*/ | ||
private $authorization; | ||
|
||
/** | ||
* @param AuthorizationInterface $authorizationInterface | ||
*/ | ||
public function __construct(AuthorizationInterface $authorizationInterface) | ||
{ | ||
$this->authorization = $authorizationInterface; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function isVisible() | ||
{ | ||
return $this->authorization->isAllowed(MarkAsRead::ADMIN_RESOURCE); | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
app/code/Magento/AdminNotification/Block/Grid/MassAction/RemoveVisibility.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento\AdminNotification\Block\Grid\MassAction; | ||
|
||
use Magento\AdminNotification\Controller\Adminhtml\Notification\Remove; | ||
use Magento\Backend\Block\Widget\Grid\Massaction\VisibilityCheckerInterface; | ||
use Magento\Framework\AuthorizationInterface; | ||
|
||
/** | ||
* Class checks if remove action can be displayed on massaction list | ||
*/ | ||
class RemoveVisibility implements VisibilityCheckerInterface | ||
{ | ||
/** | ||
* @var AuthorizationInterface | ||
*/ | ||
private $authorization; | ||
|
||
/** | ||
* @param AuthorizationInterface $authorizationInterface | ||
*/ | ||
public function __construct(AuthorizationInterface $authorizationInterface) | ||
{ | ||
$this->authorization = $authorizationInterface; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function isVisible() | ||
{ | ||
return $this->authorization->isAllowed(Remove::ADMIN_RESOURCE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.