aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/api_server.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-21 14:10:56 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-21 14:10:56 -0800
commit1a15624e13bfe0a3bdddb1f0c5bf8940c9f04a04 (patch)
tree02029146a5bc5079ec2c85dc7dc88c47a69a5352 /rust/src/api_server.rs
parent42265350c9f0b7a5731103c191a807a691f8f2ef (diff)
downloadfatcat-1a15624e13bfe0a3bdddb1f0c5bf8940c9f04a04.tar.gz
fatcat-1a15624e13bfe0a3bdddb1f0c5bf8940c9f04a04.zip
more edit edgecases; editgroup status check
Diffstat (limited to 'rust/src/api_server.rs')
-rw-r--r--rust/src/api_server.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs
index 0961194b..d03fce07 100644
--- a/rust/src/api_server.rs
+++ b/rust/src/api_server.rs
@@ -24,6 +24,7 @@ macro_rules! entity_batch_handler {
) -> Result<Vec<EntityEdit>> {
let edit_context = make_edit_context(conn, editgroup_id, autoaccept)?;
+ edit_context.check(&conn)?;
let model_list: Vec<&models::$model> = entity_list.iter().map(|e| e).collect();
let edits = $model::db_create_batch(conn, &edit_context, model_list.as_slice())?;