Return permissions error when automatically creating a table without authorization (#178)
Closes #177
This commit is contained in:
parent
78aca01283
commit
63d8034a60
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ impl<'a> Document<'a> {
|
||||||
run.add_and_cache_tb(opt.ns(), opt.db(), &rid.tb, opt.strict).await
|
run.add_and_cache_tb(opt.ns(), opt.db(), &rid.tb, opt.strict).await
|
||||||
}
|
}
|
||||||
// We can't create the table so error
|
// We can't create the table so error
|
||||||
false => Err(Error::TbNotFound),
|
false => Err(Error::QueryPermissions),
|
||||||
},
|
},
|
||||||
// There was an error
|
// There was an error
|
||||||
Err(err) => Err(err),
|
Err(err) => Err(err),
|
||||||
|
|
Loading…
Reference in a new issue