Rename lambda argument
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
Madis Mägi 2023-08-16 03:01:04 +03:00
parent 07772d9d42
commit a2b3d21f27

View File

@ -23,7 +23,7 @@ def login_required(_f=None, *, groups=[]):
print("doing login redirect")
session["original_url"] = request.full_path
return do_login()
if groups and not any(g in groups for g in user["groups"]):
if groups and not any(group in groups for group in user["groups"]):
return "not allowed", 401
return f(*args, **kwargs)
return decorated_function