Add MG_ENTERPRISE and license checks (#547)

This commit is contained in:
niko4299
2022-09-14 01:10:28 +02:00
committed by GitHub
parent dc8dad9794
commit 201f75e809
24 changed files with 703 additions and 208 deletions

View File

@@ -39,9 +39,12 @@ class MockAuthChecker : public memgraph::query::AuthChecker {
public:
MOCK_CONST_METHOD2(IsUserAuthorized, bool(const std::optional<std::string> &username,
const std::vector<memgraph::query::AuthQuery::Privilege> &privileges));
#ifdef MG_ENTERPRISE
MOCK_CONST_METHOD2(GetFineGrainedAuthChecker,
std::unique_ptr<memgraph::query::FineGrainedAuthChecker>(
const std::string &username, const memgraph::query::DbAccessor *db_accessor));
#endif
};
} // namespace