Skip to content

Commit

Permalink
change self.is_filtered if returned policy is none
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng JIANG committed Apr 18, 2020
1 parent b6dd6fb commit 2606270
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ impl Adapter for DieselAdapter {
}
}
}
} else {
self.is_filtered = true;
}
}

Expand Down Expand Up @@ -484,6 +486,9 @@ mod tests {
.await
.unwrap();

assert!(adapter.save_policy(e.get_mut_model()).await.is_ok());
e.set_adapter(adapter).await.unwrap();

let filter = Filter {
p: vec!["", "domain1"],
g: vec!["", "", "domain1"],
Expand Down

0 comments on commit 2606270

Please sign in to comment.