fix: kick app contract
allow access if node is in app nodes or VM nodes
This commit is contained in:
parent
4615c10799
commit
3e3fde2f65
@ -552,7 +552,9 @@ impl BrainData {
|
||||
.operators
|
||||
.get_mut(operator)
|
||||
.ok_or(Error::AccessDenied)?;
|
||||
if !operator_data.vm_nodes.contains(&node_pubkey) {
|
||||
if !(operator_data.vm_nodes.contains(&node_pubkey)
|
||||
|| operator_data.app_nodes.contains(&node_pubkey))
|
||||
{
|
||||
return Err(Error::AccessDenied);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user