protected function _checkReadPermisions(Application\Model\ListResultModel $list)
 {
     $supplServicess = $list->getItems();
     if ($supplServicess !== null) {
         $result = array();
         foreach ($supplServicess as $key => $supplServices) {
             try {
                 $this->_helper->allowed('read', $supplServices);
                 $this->_helper->filterNotAllowedFields('read_field', $supplServices);
                 $result[] = $supplServices;
             } catch (AppEx\ForbiddenException $e) {
                 $list->setCount($list->getCount() - 1);
             }
         }
         $list->setItems($result);
     }
     return $list;
 }
 protected function _checkReadPermisions(Application\Model\ListResultModel $list)
 {
     $preBills = $list->getItems();
     $result = array();
     foreach ($preBills as $key => $preBill) {
         try {
             $this->_helper->allowed('read', $preBill);
             $preBill->fileName = null;
             $result[] = $preBill;
         } catch (ForbiddenException $e) {
             //Nothing to do.
         }
     }
     $list->setItems($result);
     return $list;
 }
 protected function _checkReadPermisions(Application\Model\ListResultModel $list)
 {
     $item = $list->getItems();
     if ($item !== null) {
         $result = array();
         foreach ($item as $key => $item) {
             try {
                 $this->_helper->allowed('read', $item);
                 $result[] = $item;
             } catch (AppEx\ForbiddenException $e) {
                 //Nothing to do.
             }
         }
         $list->setItems($result);
     }
     return $list;
 }
 protected function _checkReadPermisions(Application\Model\ListResultModel $list)
 {
     $sims = $list->getItems();
     $result = array();
     foreach ($sims as $key => $sim) {
         try {
             $this->_helper->allowed('preinventory_read_sim', $sim);
             $result[] = $sim;
         } catch (AppEx\ForbiddenException $e) {
             //Nothing to do.
         }
     }
     $list->setItems($result);
     return $list;
 }
 protected function _checkReadRights(Application\Model\ListResultModel $list)
 {
     $sims = $list->getItems();
     $result = array();
     foreach ($sims as $key => $sim) {
         try {
             $this->_helper->allowed('read', $sim);
             $result[] = $sim;
         } catch (ForbiddenException $e) {
             $list->setCount($list->getCount() - 1);
         }
     }
     $list->setItems($result);
     return $list;
 }