Skip to content

Commit dad8d0c

Browse files
authoredOct 24, 2024
Update _access.conf
the pass_auth and satisfy_any properties and now boolean true/false, they do not == 1 so the switching in this template breaks
1 parent ee41bb5 commit dad8d0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎backend/templates/_access.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
auth_basic "Authorization required";
55
auth_basic_user_file /data/access/{{ access_list_id }};
66

7-
{% if access_list.pass_auth == 0 %}
7+
{% if access_list.pass_auth == 0 or access_list.pass_auth == true %}
88
proxy_set_header Authorization "";
99
{% endif %}
1010

@@ -17,7 +17,7 @@
1717
deny all;
1818

1919
# Access checks must...
20-
{% if access_list.satisfy_any == 1 %}
20+
{% if access_list.satisfy_any == 1 or access_list.satisfy_any == true %}
2121
satisfy any;
2222
{% else %}
2323
satisfy all;

0 commit comments

Comments
 (0)