diff options
Diffstat (limited to 'inc/actions.php')
-rw-r--r-- | inc/actions.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/inc/actions.php b/inc/actions.php index a36fdfd5b..ecf09036f 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -509,10 +509,14 @@ function act_edit($act){ if(!$DATE) $DATE = $INFO['meta']['date']['modified']; //check if locked by anyone - if not lock for my self - $lockedby = checklock($ID); - if($lockedby) return 'locked'; + //do not lock when the user can't edit anyway + if ($INFO['writable']) { + $lockedby = checklock($ID); + if($lockedby) return 'locked'; + + lock($ID); + } - lock($ID); return $act; } |