math is hard
This commit is contained in:
parent
cf881ddbfc
commit
98981cea60
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ ldap_groups_start_with = "Allowed "
|
|||
def get_headers(headers):
|
||||
return (
|
||||
headers.get("HTTP_AUTH_USER", ""),
|
||||
[ h[len(ldap_groups_start_with)-1:] for h in headers.get("HTTP_AUTH_GROUPS", "").split("; ") if h[:len(ldap_groups_start_with)] == ldap_groups_start_with ]
|
||||
[ h[len(ldap_groups_start_with):] for h in headers.get("HTTP_AUTH_GROUPS", "").split("; ") if h[:len(ldap_groups_start_with)] == ldap_groups_start_with ]
|
||||
)
|
||||
|
||||
@app.route("/")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue