diff --git a/src/Api/Models/Response/ConfigResponseModel.cs b/src/Api/Models/Response/ConfigResponseModel.cs index e560271c0..7328f1d16 100644 --- a/src/Api/Models/Response/ConfigResponseModel.cs +++ b/src/Api/Models/Response/ConfigResponseModel.cs @@ -11,6 +11,7 @@ public class ConfigResponseModel : ResponseModel public ServerConfigResponseModel Server { get; set; } public EnvironmentConfigResponseModel Environment { get; set; } public IDictionary FeatureStates { get; set; } + public ServerSettingsResponseModel Settings { get; set; } public ConfigResponseModel() : base("config") { @@ -18,6 +19,7 @@ public class ConfigResponseModel : ResponseModel GitHash = AssemblyHelpers.GetGitHash(); Environment = new EnvironmentConfigResponseModel(); FeatureStates = new Dictionary(); + Settings = new ServerSettingsResponseModel(); } public ConfigResponseModel( @@ -36,6 +38,10 @@ public class ConfigResponseModel : ResponseModel Sso = globalSettings.BaseServiceUri.Sso }; FeatureStates = featureStates; + Settings = new ServerSettingsResponseModel + { + DisableUserRegistration = globalSettings.DisableUserRegistration + }; } } @@ -54,3 +60,8 @@ public class EnvironmentConfigResponseModel public string Notifications { get; set; } public string Sso { get; set; } } + +public class ServerSettingsResponseModel +{ + public bool DisableUserRegistration { get; set; } +}