fix: kick app contract

allow access if node is in app nodes or VM nodes
This commit is contained in:
Noor 2025-04-14 11:12:21 +00:00
parent 4615c10799
commit 3e3fde2f65
Signed by: noormohammedb
GPG Key ID: 7680BB1B83C6A443

@ -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);
}