Typos
This commit is contained in:
parent
1ae3b084f4
commit
3a8c504a50
@ -55,10 +55,12 @@ 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(',')
|
||||||
if list(set(current_groups) & set(allowed_groups)) == [] :
|
else :
|
||||||
shouldremove = True
|
allowed_groups = ["Admins"]
|
||||||
else :
|
if not list(set(current_groups) & set(allowed_groups)) :
|
||||||
shouldremove = False
|
shouldremove = True
|
||||||
|
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))') :
|
||||||
|
Loading…
Reference in New Issue
Block a user