-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[E129<-T0955-MG] Expand ExecutionContext with label related informati…
…on (#467) * added * Added FineGrainedAccessChecker to Context * fixed
- Loading branch information
Showing
5 changed files
with
91 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2022 Memgraph Ltd. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt; by using this file, you agree to be bound by the terms of the Business Source | ||
// License, and you may not use this file except in compliance with the Business Source License. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
#pragma once | ||
|
||
#include "auth/models.hpp" | ||
#include "query/frontend/ast/ast.hpp" | ||
#include "storage/v2/id_types.hpp" | ||
|
||
namespace memgraph::query { | ||
class FineGrainedAccessChecker { | ||
public: | ||
virtual bool IsUserAuthorizedLabels(const std::vector<memgraph::storage::LabelId> &label, | ||
memgraph::query::DbAccessor *dba) const = 0; | ||
}; | ||
} // namespace memgraph::query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters