Fix refresh() conditional check for page

This commit is contained in:
Cody 2024-02-01 14:36:14 -08:00 committed by GitHub
parent eb25d9d7af
commit 8500f5b437
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -324,7 +324,7 @@
}
else // not mapped
{
if (user == null && Utilities.IsPageModuleVisible(page.EffectiveDate, page.ExpiryDate))
if (user == null)
{
// redirect to login page if user not logged in as they may need to be authenticated
NavigationManager.NavigateTo(Utilities.NavigateUrl(SiteState.Alias.Path, "login", "?returnurl=" + WebUtility.UrlEncode(route.PathAndQuery)));