Return permissions error when automatically creating a table without authorization (#178)

Closes #177
This commit is contained in:
Stephen Gilboy 2022-09-16 21:05:02 -05:00 committed by GitHub
parent 78aca01283
commit 63d8034a60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ impl<'a> Document<'a> {
run.add_and_cache_tb(opt.ns(), opt.db(), &rid.tb, opt.strict).await
}
// We can't create the table so error
false => Err(Error::TbNotFound),
false => Err(Error::QueryPermissions),
},
// There was an error
Err(err) => Err(err),