Don't add unprotected_urls if it's already in skipped_urls

This commit is contained in:
Josué Tille 2020-05-25 10:45:40 +02:00
parent 2a631fa23d
commit 52c2127e35
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -1338,7 +1338,7 @@ def app_ssowatconf():
url = _sanitized_absolute_url(perm_info["url"])
perm_info["url"] = url
if "visitors" in perm_info["allowed"]:
if url not in unprotected_urls:
if url not in unprotected_urls and url not in skipped_urls:
unprotected_urls.append(url)
# Legacy stuff : we remove now protected-urls that might have been declared as unprotected earlier...