model->getEntity((int) $id); if (null !== $focus && ( $focus->isPublished() || $this->security->hasEntityAccess( 'focus:items:viewown', 'focus:items:viewother', $focus->getCreatedBy() ) ) ) { $script = ''; $tokens[$token] = $script; } else { $tokens[$token] = ''; } } } return $tokens; } }