Skip to content

Commit accb538

Browse files
authored
Merge pull request #2303 from ekohl/simplify-require-logic
Simplify the logic in _require.erb
2 parents 61d1943 + c1b61e9 commit accb538

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/vhost/_require.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
<%- end -%>
2121
<%- if _item['auth_require'] -%>
2222
Require <%= _item['auth_require'] %>
23-
<%- end -%>
24-
<%- if !(_item['require'] && _item['require'] != '') && _item['require'] !~ /unmanaged/i && !(_item['auth_require']) -%>
23+
<%- elsif !_item['require'] || _item['require'] == '' -%>
2524
Require all granted
2625
<%- end -%>
2726
<%- else -%>

0 commit comments

Comments
 (0)