&& identity.hasPermission("import-template", projectIteration);
}
private void failIfFileTypeNotValid(DocumentFileUploadForm uploadForm)
throws ChunkUploadException {
DocumentType type = DocumentType.typeFor(uploadForm.getFileType());
if (!isSourceDocumentType(type)) {
throw new ChunkUploadException(Status.BAD_REQUEST, "The type \""
+ uploadForm.getFileType()
+ "\" specified in form parameter 'type' "
+ "is not valid for a source file on this server.");