Skip to content

Commit

Permalink
Fix Command paths used for Authorisation
Browse files Browse the repository at this point in the history
Re ECFLOW-1960
  • Loading branch information
marcosbento committed Mar 6, 2025
1 parent c51bb70 commit 86bedde
Show file tree
Hide file tree
Showing 8 changed files with 296 additions and 126 deletions.
9 changes: 7 additions & 2 deletions libs/base/src/ecflow/base/Algorithms.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ template <typename PREDICATE>
void visit(const Defs& defs, const Path& path, PREDICATE& predicate) {

// a. Visit the 'definitions' (which includes the server state)
predicate(defs);
predicate.handle(defs);

if (path.empty()) {
return;
Expand All @@ -97,7 +97,12 @@ void visit(const Defs& defs, const Path& path, PREDICATE& predicate) {
else {
current = current->find_immediate_child(token);
}
predicate(*current);
if (current == nullptr) {
predicate.not_found();
return;
}

predicate.handle(*current);
}

}
Expand Down
Loading

0 comments on commit 86bedde

Please sign in to comment.