AuthorizationMock.php 525 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Model\Search;
  7. /**
  8. * @SuppressWarnings("unused")
  9. */
  10. class AuthorizationMock extends \Magento\Framework\Authorization
  11. {
  12. /**
  13. * Check current user permission on resource and privilege
  14. *
  15. * @param string $resource
  16. * @param string $privilege
  17. * @return boolean
  18. */
  19. public function isAllowed($resource, $privilege = null)
  20. {
  21. return true;
  22. }
  23. }