Skip to content

Commit

Permalink
Fixed error with missing process and report options
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Jul 17, 2024
1 parent e57f08f commit ab7c084
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/models/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ pub async fn allowed_menu(_language: Option<&String>, _client_id: Option<&String
// Main Menu
let _tree_children = _tree.children;
let menus = load_valid_children(_tree_children, _menu_items);
// println!("Epale: {:?}", menus);
Ok(MenuListResponse {
menus: Some(menus)
})
Expand Down
18 changes: 17 additions & 1 deletion src/models/menu_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,25 @@ impl MenuItem {
"action_id": _process_access
}
},
{
"match": {
"action": "P"
}
}
]
}
},
{
"bool": {
"must": [
{
"terms": {
"action": ["R", "P"]
"action_id": _process_access
}
},
{
"match": {
"action": "R"
}
}
]
Expand Down

0 comments on commit ab7c084

Please sign in to comment.