Zanzana: Pass parent folder for the checks in search queries (#94541)
* Pass parent folder as a contextual tuple in Check request * Search by listing folders and dashboards * skip dashboards listing if limit reached * remove unused * add some comments * only add ContextualTuples if parent provided * Remove parent relation for dashboards from schema and perform separate checks
This commit is contained in:
@@ -589,9 +589,12 @@ type QueryWithOrg struct {
|
||||
}
|
||||
|
||||
type CheckRequest struct {
|
||||
User string
|
||||
Relation string
|
||||
Object string
|
||||
Namespace string
|
||||
User string
|
||||
Relation string
|
||||
Object string
|
||||
ObjectType string
|
||||
Parent string
|
||||
}
|
||||
|
||||
type ListObjectsRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user