I am trying to apply the table permissions system SurrealDB offers to enable row-level security in its tables, but am seeming to fail with a simple example:
DEFINE TABLE node SCHEMAFULL TYPE NORMAL;
DEFINE TABLE edge SCHEMAFULL TYPE RELATION IN node TO node
PERMISSIONS
FOR create
WHERE in != out;
CREATE node:foo;
RELATE node:foo->edge->node:foo; -- this shouldn't be possible
Testing this on SurrealDB v2.0.0-alpha.8 shows that it succeeds when I don't think it should - but I'm not sure if RELATE
isn't necessarily the same thing as a create
event, and that's why it succeeds.