From 63d8034a60c1bb3580ec3ab29b2be7319f29e6d6 Mon Sep 17 00:00:00 2001 From: Stephen Gilboy Date: Fri, 16 Sep 2022 21:05:02 -0500 Subject: [PATCH] Return permissions error when automatically creating a table without authorization (#178) Closes #177 --- lib/src/doc/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/doc/document.rs b/lib/src/doc/document.rs index ad5e6635..f8f74db0 100644 --- a/lib/src/doc/document.rs +++ b/lib/src/doc/document.rs @@ -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),