init
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Magento\Ui\Model;
|
||||
|
||||
/**
|
||||
* Class AuthorizationMock
|
||||
*/
|
||||
class AuthorizationMock extends \Magento\Framework\Authorization
|
||||
{
|
||||
/**
|
||||
* Check current user permission on resource and privilege
|
||||
*
|
||||
* @param string $resource
|
||||
* @param string $privilege
|
||||
* @return boolean
|
||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
||||
*/
|
||||
public function isAllowed($resource, $privilege = null)
|
||||
{
|
||||
return $resource !== 'Magento_Customer::manage';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user