Pārlūkot izejas kodu

Merge pull request #4894 from eduardpaul/feat-fix-pass_auth-template

Update _access.conf to fix access_list.pass_auth logic
jc21 1 mēnesi atpakaļ
vecāks
revīzija
fba14817e7
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      backend/templates/_access.conf

+ 1 - 1
backend/templates/_access.conf

@@ -4,7 +4,7 @@
     auth_basic            "Authorization required";
     auth_basic_user_file  /data/access/{{ access_list_id }};
 
-    {% if access_list.pass_auth == 0 or access_list.pass_auth == true %}
+    {% if access_list.pass_auth == 0 or access_list.pass_auth == false %}
     proxy_set_header Authorization "";
     {% endif %}