Exemplo n.º 1
0
 /**
  * @param array|string $options
  *
  * @return bool
  */
 protected function isVisible($options)
 {
     if (is_array($options) and isset($options['entity'])) {
         $entity = $this->env->getEntities()->resolve($options['entity']);
         if (!$entity->isPermitted(Entity::READ)) {
             return false;
         }
     }
     return parent::isVisible($options);
 }