Getting rid of the config file and implementing an appSetting instead
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user