From f03fce8e3b542fe3a0925e70bfa01a062e00c84d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 18 Jan 2021 22:34:47 -0600 Subject: use feature flags for prometheus and swagger. refactor handling of auth disable --- src/slskd/Controllers/SessionController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slskd/Controllers/SessionController.cs') diff --git a/src/slskd/Controllers/SessionController.cs b/src/slskd/Controllers/SessionController.cs index 0f849a2a..5c162708 100644 --- a/src/slskd/Controllers/SessionController.cs +++ b/src/slskd/Controllers/SessionController.cs @@ -34,7 +34,7 @@ [ProducesResponseType(typeof(bool), 200)] public IActionResult Enabled() { - return Ok(Startup.EnableSecurity); + return Ok(!Program.DisableAuthentication); } /// -- cgit v1.2.3