This commit is contained in:
Daniel Dayley 2024-11-07 10:24:21 -07:00
parent 8cd51313ac
commit 1ae3b084f4
Signed by: Cronocide
GPG Key ID: 1CADA052F64664EC

View File

@ -52,7 +52,7 @@ async def serve_file(request: Request, file_path: str) :
if 'users' in service.attrs.keys() : if 'users' in service.attrs.keys() :
allowed_users = service['users'].split(',') allowed_users = service['users'].split(',')
if allowed_users != ["Any"] and user_header not in allowed_users : if allowed_users != ["Any"] and user_header not in allowed_users :
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)) == [] : if list(set(current_groups) & set(allowed_groups)) == [] :