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 committed by Alexandre Aubin
parent ea26182ad1
commit 6ffd0d8f5a

View file

@ -1358,7 +1358,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...