return notFound("The file does not exist.");
}
String eTag = "\"" + attachment.hash + "-" + dispositionType + "\"";
if (!AccessControl.isAllowed(UserApp.currentUser(), attachment.asResource(), Operation.READ)) {
return forbidden("You have no permission to get the file.");
}
response().setHeader("Cache-Control", "private, max-age=3600");