Merge pull request #1005 from YunoHost/fix_skipped_urls_management

Don't add unprotected_urls if it's already in skipped_urls
This commit is contained in:
Alexandre Aubin 2020-06-04 18:51:42 +02:00 committed by GitHub
commit 803d624b7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1358,7 +1358,7 @@ def app_ssowatconf():
url = _sanitized_absolute_url(perm_info["url"]) url = _sanitized_absolute_url(perm_info["url"])
perm_info["url"] = url perm_info["url"] = url
if "visitors" in perm_info["allowed"]: 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) unprotected_urls.append(url)
# Legacy stuff : we remove now protected-urls that might have been declared as unprotected earlier... # Legacy stuff : we remove now protected-urls that might have been declared as unprotected earlier...