Fixing display logic

This commit is contained in:
Daniel Dayley 2024-11-07 11:02:43 -07:00
parent 3a8c504a50
commit 4c85099f9e
Signed by: Cronocide
GPG Key ID: 1CADA052F64664EC

View File

@ -55,12 +55,10 @@ async def serve_file(request: Request, file_path: str) :
shouldremove = True shouldremove = True
if 'groups' in service.attrs.keys() : if 'groups' in service.attrs.keys() :
allowed_groups = service['groups'].split(',') allowed_groups = service['groups'].split(',')
else : if not list(set(current_groups) & set(allowed_groups)) :
allowed_groups = ["Admins"] shouldremove = True
if not list(set(current_groups) & set(allowed_groups)) : else :
shouldremove = True shouldremove = False
else :
shouldremove = False
if shouldremove : if shouldremove :
service.decompose() service.decompose()
for category in soup.select('li.category:not(:has(ul li))') : for category in soup.select('li.category:not(:has(ul li))') :