public function showVersionAction()
{
$id = intval($this->getParam("id"));
$version = Model\Version::getById($id);
$asset = $version->loadData();
if ($asset->isAllowed("versions")) {
$this->view->asset = $asset;
$this->render("show-version-" . $asset->getType());
} else {
throw new \Exception("Permission denied, version id [" . $id . "]");
}
}