RolesGrid.php 676 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\User\Controller\Adminhtml\User;
  8. class RolesGrid extends \Magento\User\Controller\Adminhtml\User
  9. {
  10. /**
  11. * @return void
  12. */
  13. public function execute()
  14. {
  15. $userId = $this->getRequest()->getParam('user_id');
  16. /** @var \Magento\User\Model\User $model */
  17. $model = $this->_userFactory->create();
  18. if ($userId) {
  19. $model->load($userId);
  20. }
  21. $this->_coreRegistry->register('permissions_user', $model);
  22. $this->_view->loadLayout();
  23. $this->_view->renderLayout();
  24. }
  25. }