Collection.php 639 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\User\Model\ResourceModel\User\Locked;
  7. /**
  8. * Admin user collection
  9. *
  10. * @author Magento Core Team <core@magentocommerce.com>
  11. */
  12. class Collection extends \Magento\User\Model\ResourceModel\User\Collection
  13. {
  14. /**
  15. * Collection Init Select
  16. *
  17. * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  18. * @return $this
  19. */
  20. protected function _initSelect()
  21. {
  22. parent::_initSelect();
  23. $this->addFieldToFilter('lock_expires', ['notnull' => true]);
  24. }
  25. }