Rename lambda argument
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
parent
07772d9d42
commit
a2b3d21f27
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user