feat(call): filter services/list by AccessControl and add services/list-peers opt-in (call/services-list-accesscontrol-filtered)
This commit is contained in:
@@ -38,6 +38,18 @@ pub trait OperationEnv: Send + Sync {
|
||||
fn contains(&self, _name: &str) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn peer_ids(&self) -> Vec<PeerId> {
|
||||
Vec::new()
|
||||
}
|
||||
|
||||
fn peer_contains(&self, _peer: &PeerId, name: &str) -> bool {
|
||||
self.contains(name)
|
||||
}
|
||||
|
||||
fn peer_operations(&self, _peer: &PeerId) -> Vec<String> {
|
||||
Vec::new()
|
||||
}
|
||||
}
|
||||
|
||||
pub struct LocalOperationEnv {
|
||||
|
||||
Reference in New Issue
Block a user