diff --git a/module/zanode/model.php b/module/zanode/model.php index d4c4844582..9e94f9ccf0 100644 --- a/module/zanode/model.php +++ b/module/zanode/model.php @@ -758,8 +758,8 @@ class zanodemodel extends model $action = strtolower($action); if(isset($node->from) && $node->from == 'snapshot') { - if(empty($node->isDefault) && $action == 'editsnapshot') return false; - if(empty($node->isDefault) && $action == 'deletesnapshot') return false; + if(!empty($node->isDefault) && $action == 'editsnapshot') return false; + if(!empty($node->isDefault) && $action == 'deletesnapshot') return false; } if($action == 'resume') return $node->status == 'suspend' && $node->hostType != 'physics';