Carrotware.CMS.Core.ContentSnippet.RecordSnippetLock C# (CSharp) Метод

RecordSnippetLock() публичный Метод

public RecordSnippetLock ( System.Guid currentUserID ) : bool
currentUserID System.Guid
Результат bool
        public bool RecordSnippetLock(Guid currentUserID)
        {
            bool bLock = this.IsLocked;
            bool bRet = false;

            if (!bLock) {
                ExtendedUserData usr = new ExtendedUserData(currentUserID);

                //only allow admin/editors to record a lock
                if (usr.IsAdmin || usr.IsEditor) {
                    bRet = true;
                    RecordHeartbeatLock(currentUserID);
                }
            }

            return bRet;
        }