Skip to content

Commit

Permalink
fix: added Role::Use filtering in check_available() method for capabi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
Vinodsathyaseelan committed Jan 11, 2024
1 parent cc43487 commit 9c3416c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/main/src/state/cap/generic_cap_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl GenericCapState {
let not_available = self.not_available.read().unwrap();

Check warning on line 112 in core/main/src/state/cap/generic_cap_state.rs

View workflow job for this annotation

GitHub Actions / Format checker

Diff in /home/runner/work/Ripple/Ripple/core/main/src/state/cap/generic_cap_state.rs
let mut result: Vec<FireboltCap> = Vec::new();
for fb_perm in request {
if not_available.contains(&fb_perm.cap.as_str()) {
if fb_perm.role == CapabilityRole::Use && not_available.contains(&fb_perm.cap.as_str()) {
result.push(fb_perm.cap.clone())
}
}
Expand Down

0 comments on commit 9c3416c

Please sign in to comment.