Getting rid of the config file and implementing an appSetting instead

This commit is contained in:
Elitsa Marinovska
2021-03-24 15:28:06 +01:00
parent 3393ac8d03
commit eabfa7f414
6 changed files with 37 additions and 23 deletions

View File

@@ -395,6 +395,28 @@ namespace Umbraco.Core.Configuration
}
}
/// <summary>
/// Gets a value indicating whether the content dashboard should be available to all users.
/// </summary>
/// <value>
/// <c>true</c> if the dashboard is visible for all user groups; otherwise, <c>false</c>
/// and the default access rules for that dashboard will be in use.
/// </value>
public bool AllowContentDashboardAccessToAllUsers
{
get
{
try
{
return bool.Parse(ConfigurationManager.AppSettings[Constants.AppSettings.AllowContentDashboardAccessToAllUsers]);
}
catch
{
return false;
}
}
}
/// <summary>
/// An int value representing the time in milliseconds to lock the database for a write operation

View File

@@ -57,6 +57,15 @@
/// </summary>
bool UseHttps { get; }
/// <summary>
/// Gets a value indicating whether the content dashboard should be available to all users.
/// </summary>
/// <value>
/// <c>true</c> if the dashboard is visible for all user groups; otherwise, <c>false</c>
/// and the default access rules for that dashboard will be in use.
/// </value>
bool AllowContentDashboardAccessToAllUsers { get; }
/// <summary>
/// Returns a string value to determine if umbraco should skip version-checking.
/// </summary>