Fix the conditionals.

This commit is contained in:
Andrea Dell'Amico 2021-11-17 16:32:45 +01:00
parent 94997f3d83
commit 8b538f3293
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,8 @@ api_role = *
/api/version = anon
{% if not cdh_zeppelin_secure_urls %}
/** = anon
{% elseif cdh_zeppelin_ldap_advanced_config %}
{% else %}
{% if cdh_zeppelin_ldap_advanced_config %}
/api/interpreter/setting/restart/** = authc
{% if cdh_zeppelin_local_api_user %}
/api/interpreter/** = {{ cdh_zeppelin_secure_interpreter_api_roles }}
@ -131,3 +132,4 @@ api_role = *
{% else %}
/** = authc
{% endif %}
{% endif %}