From 4c85099f9e6e85e5e4655fddcbb8acc5c569c60d Mon Sep 17 00:00:00 2001 From: Daniel Dayley Date: Thu, 7 Nov 2024 11:02:43 -0700 Subject: [PATCH] Fixing display logic --- bin/headercheckdashboardproxy | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/headercheckdashboardproxy b/bin/headercheckdashboardproxy index ea28fbd..476f3df 100644 --- a/bin/headercheckdashboardproxy +++ b/bin/headercheckdashboardproxy @@ -55,12 +55,10 @@ async def serve_file(request: Request, file_path: str) : shouldremove = True if 'groups' in service.attrs.keys() : allowed_groups = service['groups'].split(',') - else : - allowed_groups = ["Admins"] - if not list(set(current_groups) & set(allowed_groups)) : - shouldremove = True - else : - shouldremove = False + if not list(set(current_groups) & set(allowed_groups)) : + shouldremove = True + else : + shouldremove = False if shouldremove : service.decompose() for category in soup.select('li.category:not(:has(ul li))') :