private void updateContent(VirtualFileImpl virtualFile, String mediaType, InputStream content, String lockToken,
boolean updateMediaType) throws ForbiddenException, ServerException {
if (!virtualFile.isFile()) {
throw new ForbiddenException(String.format("Unable update content. Item '%s' is not file. ", virtualFile.getPath()));
}
<BUG>if (!VirtualFileDefaults.isPathIgnored(virtualFile.getVirtualFilePath())) {
if (!hasPermission(virtualFile, BasicPermissions.WRITE.value(), true)) {</BUG>
throw new ForbiddenException(
String.format("Unable update content of file '%s'. Operation not permitted. ", virtualFile.getPath()));
}

private void updateContent(VirtualFileImpl virtualFile, String mediaType, InputStream content, String lockToken,
boolean updateMediaType) throws ForbiddenException, ServerException {
if (!virtualFile.isFile()) {
throw new ForbiddenException(String.format("Unable update content. Item '%s' is not file. ", virtualFile.getPath()));
}
if (systemFilter.accept(workspaceId, virtualFile.getVirtualFilePath())) {
if (!hasPermission(virtualFile, BasicPermissions.WRITE.value(), true)) {
throw new ForbiddenException(
String.format("Unable update content of file '%s'. Operation not permitted. ", virtualFile.getPath()));
