From 216abaa0ef4ab9091034c8b2bddc7000698e02fc Mon Sep 17 00:00:00 2001 From: niko4299 Date: Mon, 11 Jul 2022 17:13:43 +0200 Subject: [PATCH] without username can see all --- src/query/plan/operator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/plan/operator.cpp b/src/query/plan/operator.cpp index 29e749242..e1422c598 100644 --- a/src/query/plan/operator.cpp +++ b/src/query/plan/operator.cpp @@ -407,7 +407,7 @@ class ScanAllCursor : public Cursor { while (vertices_it_.value() != vertices_.value().end()) { VertexAccessor vector = *vertices_it_.value(); auto labels = vector.Labels(memgraph::storage::View::NEW).GetValue(); - if (context.label_checker->IsUserAuthorized(labels)) { + if (context.label_checker->IsUserAuthorized(labels) || !context.label_checker) { frame[output_symbol_] = *vertices_it_.value(); ++vertices_it_.value(); return true;