1234567891011121314151617181920212223242526 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- /**
- * Default authorization policy. Allows access to all resources
- */
- namespace Magento\Framework\Authorization\Policy;
- class DefaultPolicy implements \Magento\Framework\Authorization\PolicyInterface
- {
- /**
- * Check whether given role has access to give id
- *
- * @param string $roleId
- * @param string $resourceId
- * @param string $privilege
- * @return true
- */
- public function isAllowed($roleId, $resourceId, $privilege = null)
- {
- return true;
- }
- }
|