diff --git a/ZelWiki/SessionState.cs b/ZelWiki/SessionState.cs
index 172efaf..c6a4841 100644
--- a/ZelWiki/SessionState.cs
+++ b/ZelWiki/SessionState.cs
@@ -30,7 +30,7 @@ namespace ZelWiki
#region Current Page.
///
- /// Custom page title set by a call to @@Title("...")
+ ///
///
public string? PageTitle { get; set; }
public bool ShouldCreatePage { get; set; }
@@ -40,7 +40,7 @@ namespace ZelWiki
public ProcessingInstructionCollection PageInstructions { get; set; } = new();
///
- /// The "page" here is more of a "mock page", we use the name for various stuff.
+ ///
///
public IPage Page { get; set; } = new Models.DataModels.Page() { Name = GlobalConfiguration.Name };
@@ -97,11 +97,6 @@ namespace ZelWiki
UserTheme = ConfigurationRepository.GetAllThemes().SingleOrDefault(o => o.Name == Profile.Theme) ?? GlobalConfiguration.SystemTheme;
IsAuthenticated = true;
}
- else
- {
- //User is signed in, but does not have a profile.
- //This likely means that the user has authenticated externally, but has yet to complete the signup process.
- }
}
}
catch (Exception ex)
@@ -117,12 +112,6 @@ namespace ZelWiki
}
}
- ///
- /// Sets the current context pageId and optionally the revision.
- ///
- ///
- ///
- ///
public void SetPageId(int? pageId, int? revision = null)
{
Page = new Models.DataModels.Page();
@@ -184,12 +173,12 @@ namespace ZelWiki
}
///
- /// Is the current user (or anonymous) allowed to view?
+ ///
///
public bool CanView => true;
///
- /// Is the current user allowed to edit?
+ ///
///
public bool CanEdit
{
@@ -209,25 +198,25 @@ namespace ZelWiki
}
///
- /// Is the current user allowed to perform administrative functions?
+ ///
///
public bool CanAdmin =>
IsAuthenticated && IsMemberOf(Role, [Constants.Roles.Administrator]);
///
- /// Is the current user allowed to moderate content (such as delete comments, and view moderation tools)?
+ ///
///
public bool CanModerate =>
IsAuthenticated && IsMemberOf(Role, [Constants.Roles.Administrator, Constants.Roles.Moderator]);
///
- /// Is the current user allowed to create pages?
+ ///
///
public bool CanCreate =>
IsAuthenticated && IsMemberOf(Role, [Constants.Roles.Administrator, Constants.Roles.Contributor, Constants.Roles.Moderator]);
///
- /// Is the current user allowed to delete unprotected pages?
+ ///
///
public bool CanDelete
{