without username can see all

This commit is contained in:
niko4299 2022-07-11 17:13:43 +02:00
parent b0af87ed9b
commit 216abaa0ef

View File

@ -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;