Skip to content

Commit 6ff7094

Browse files
Update modules/ROOT/pages/errors/gql-errors/42N0D.adoc
Co-authored-by: Phil Wright <[email protected]>
1 parent 3ec8bda commit 6ff7094

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/ROOT/pages/errors/gql-errors/42N0D.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
error: syntax error or access rule violation - cannot call function from this context. The function `{ <<fun>> }` cannot be called from the current context. It can only be used `{ <<context>> }`.
88

99
== Explanation
10-
This function cannot be called in the particular context. The function can only be used in the specified context.
10+
This error is thrown when a function is called from a context that is not allowed for that function.
11+
For example, if you try to call `abac.oidc.user_attribuge()` from a regular Cypher query, you will get this error, because it is not supported in user Cypher queries and can only be called from within `AUTH RULE` creation or alteration commands.
1112

1213
== Example scenario
1314
For example, calling an internal security function from a user query.

0 commit comments

Comments
 (0)