public function canRestore($member = null)
{
if ($this->allowedAny([DNRoot::ALLOW_PROD_SNAPSHOT, DNRoot::ALLOW_NON_PROD_SNAPSHOT], $member)) {
return true;
}
return (bool) $this->Environments()->filterByCallback(function ($env) use($member) {
return $env->canRestore($member);
})->Count();
}