Carrotware.CMS.Core.ContentPageHelper.IsPageLocked C# (CSharp) Method

IsPageLocked() public method

public IsPageLocked ( ContentPage cp ) : bool
cp ContentPage
return bool
        public bool IsPageLocked(ContentPage cp)
        {
            bool bLock = false;
            if (cp.Heartbeat_UserId != null) {
                if (cp.Heartbeat_UserId != SecurityData.CurrentUserGuid
                        && cp.EditHeartbeat.Value > DateTime.UtcNow.AddMinutes(-2)) {
                    bLock = true;
                }
                if (cp.Heartbeat_UserId == SecurityData.CurrentUserGuid
                    || cp.Heartbeat_UserId == null) {
                    bLock = false;
                }
            }
            return bLock;
        }

Same methods

ContentPageHelper::IsPageLocked ( System.Guid rootContentID, System.Guid siteID ) : bool
ContentPageHelper::IsPageLocked ( System.Guid rootContentID, System.Guid siteID, System.Guid currentUserID ) : bool