mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-05-19 15:19:09 +01:00
52c32b473d
When an access list was associated with a template which had users (items) but no rules (clients), a `deny all` directive was inserted to the config. This resulted in all requests, including those with valid credentials, being rejected due to the lack of any `allow` directive. This commit wraps the access rule configuration inside of an if block, so the `deny all;` directive is only present when at least one rule is configured.