change IsEffectiiveOrExpired to IsEffectiveAndNotExpired

This commit is contained in:
sbwalker
2024-07-23 07:08:26 -04:00
parent 8ca2f0a49f
commit 1cd4d6d0df
7 changed files with 11 additions and 11 deletions

View File

@ -256,7 +256,7 @@
}
// check if user is authorized to view page
if (page != null && UserSecurity.IsAuthorized(user, PermissionNames.View, page.PermissionList) && (Utilities.IsEffectiveOrExpired(page.EffectiveDate, page.ExpiryDate) || UserSecurity.IsAuthorized(user, PermissionNames.Edit, page.PermissionList)))
if (page != null && UserSecurity.IsAuthorized(user, PermissionNames.View, page.PermissionList) && (Utilities.IsEffectiveAndNotExpired(page.EffectiveDate, page.ExpiryDate) || UserSecurity.IsAuthorized(user, PermissionNames.Edit, page.PermissionList)))
{
// edit mode
if (user != null)