From 2647055d52221e9e12639b49b751586853d02872 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Mon, 9 Sep 2024 18:51:56 +0000
Subject: [PATCH] slapos_panel: Consider Remote/Instance Node as Compute Node
 for fetch access status.

---
 .../portal_skins/slapos_panel/Document_getNewsDict.py           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Document_getNewsDict.py b/master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Document_getNewsDict.py
index c15414990..a6607ed46 100644
--- a/master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Document_getNewsDict.py
+++ b/master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Document_getNewsDict.py
@@ -1,6 +1,6 @@
 portal_type = context.getPortalType()
 
-if portal_type == "Compute Node":
+if portal_type in ["Compute Node", "Remote Node", "Instance Node"]:
   return context.getAccessStatus(**kw)
 
 if portal_type == "Instance Tree":
-- 
2.30.9