Ejemplo n.º 1
0
 /**
  * Checks rights to read current object.
  * @param SecurityContext $securityContext Security context.
  * @return bool
  */
 public function canRead(SecurityContext $securityContext)
 {
     return $securityContext->canRead($this->realObjectId);
 }
Ejemplo n.º 2
0
 /**
  * Checks rights to read current object.
  * @param SecurityContext $securityContext Security context.
  * @return bool
  */
 public function canRead(SecurityContext $securityContext)
 {
     return $securityContext->canRead($this->id);
 }