From 26517044cfaf3ab06793b7621a7c07f87acbd360 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Thu, 27 Sep 2018 14:10:16 -0400 Subject: [PATCH] Fix ForbidDueToModeConflicts --- .../Controllers/ConfigurationController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tgstation.Server.Host/Controllers/ConfigurationController.cs b/src/Tgstation.Server.Host/Controllers/ConfigurationController.cs index d9033fc354..a893ea3735 100644 --- a/src/Tgstation.Server.Host/Controllers/ConfigurationController.cs +++ b/src/Tgstation.Server.Host/Controllers/ConfigurationController.cs @@ -53,13 +53,13 @@ namespace Tgstation.Server.Host.Controllers /// if a should be returned, otherwise bool ForbidDueToModeConflicts(string path, out ISystemIdentity systemIdentityToUse) { - if (!(Instance.ConfigurationType == ConfigurationType.Disallowed || (Instance.ConfigurationType == ConfigurationType.SystemIdentityWrite && AuthenticationContext.SystemIdentity == null) || (path != null && ioManager.PathContainsParentAccess(path)))) + if (Instance.ConfigurationType == ConfigurationType.Disallowed || (Instance.ConfigurationType == ConfigurationType.SystemIdentityWrite && AuthenticationContext.SystemIdentity == null) || (path != null && ioManager.PathContainsParentAccess(path))) { systemIdentityToUse = null; - return false; + return true; } systemIdentityToUse = Instance.ConfigurationType == ConfigurationType.SystemIdentityWrite ? AuthenticationContext.SystemIdentity : null; - return true; + return false; } ///