Fixing display logic
This commit is contained in:
parent
3a8c504a50
commit
4c85099f9e
@ -55,8 +55,6 @@ 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 :
|
|
||||||
allowed_groups = ["Admins"]
|
|
||||||
if not list(set(current_groups) & set(allowed_groups)) :
|
if not list(set(current_groups) & set(allowed_groups)) :
|
||||||
shouldremove = True
|
shouldremove = True
|
||||||
else :
|
else :
|
||||||
|
Loading…
Reference in New Issue
Block a user