# Using locks to prevent concurrent updates

**URL:** <https://help.ganttproject.biz/t/using-locks-to-prevent-concurrent-updates/2149>\
**Category:** GanttProject Cloud Docs\
**Created:** [September 13, 2020, 10:10pm UTC](https://help.ganttproject.biz/t/using-locks-to-prevent-concurrent-updates/2149 "2020-09-13T22:10:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DmitryBarashev](https://help.ganttproject.biz/user_avatar/help.ganttproject.biz/dmitrybarashev/32/406_2.png) [@DmitryBarashev](https://help.ganttproject.biz/u/DmitryBarashev)\
**Post date:** [September 13, 2020, 10:10pm UTC](https://help.ganttproject.biz/t/using-locks-to-prevent-concurrent-updates/2149/1 "2020-09-13T22:10:26Z")

</div>

Sometimes one may want to prevent concurrent updates, e.g. when a project manager actively changes the project schedule and does not want anyone to modify any tasks until this work is completed. For this purpose document locks can be used. A locked document can’t be updated by anyone except for the lock owner.

A document can be locked from both GP Cloud UI and from GanttProject Desktop.

## Locking from GanttProject Cloud

In order to lock a document, click a “kebab” icon in the project row and click “Lock” to open a _Lock dialog_ where you can choose the lock duration.

 ![lock1](https://help.ganttproject.biz/uploads/default/original/1X/5b75dd5579df374cdae6d68b420312283d41ac62.png)  
_Document kebab menu_

 ![lock2](https://help.ganttproject.biz/uploads/default/original/1X/d6d77c6de6d943bb1923e6271505a313a9b0ab30.png)  
_Lock Dialog_

## Locking from GanttProject Desktop

When you open a GP Cloud document in GanttProject, you see a Cloud Status Bar in the bottom-left corner of the application window.

 ![lock3](https://help.ganttproject.biz/uploads/default/original/1X/4e8cebf2a6f58cc7d4a9201edb22ba6ff813cb3a.png)

A lock icon in the status bar indicates if the opened document is locked or not. Click on the icon to open a _Cloud Document Properties_ dialog where you can lock the document for the specified time duration.

 ![lock4](https://help.ganttproject.biz/uploads/default/original/1X/ee683c6a41383bb215907c5cec0baa6f167856d5.png)
