Fixed and closed #455: meta-content is reset to defaults only on the first application start.
This commit is contained in:
parent
ceb228f937
commit
e04e02ed9c
7 changed files with 58 additions and 44 deletions
|
@ -19,6 +19,11 @@ namespace ScrewTurn.Wiki.Plugins.SqlCommon {
|
|||
|
||||
private IAclManager aclManager;
|
||||
|
||||
/// <summary>
|
||||
/// Holds a value indicating whether the application was started for the first time.
|
||||
/// </summary>
|
||||
protected bool isFirstStart = false;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the Storage Provider.
|
||||
/// </summary>
|
||||
|
@ -1300,6 +1305,14 @@ namespace ScrewTurn.Wiki.Plugins.SqlCommon {
|
|||
return somethingUpdated || rows > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the application was started for the first time.
|
||||
/// </summary>
|
||||
/// <returns><c>true</c> if the application was started for the first time, <c>false</c> otherwise.</returns>
|
||||
public bool IsFirstApplicationStart() {
|
||||
return isFirstStart;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region AclManager backend methods
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue