From daa5910cfb739e1f2f7f5d1112b645349c7a5c4b Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Thu, 26 Apr 2018 19:02:42 +0200
Subject: [PATCH] unlock pages on viewing them

---
 inc/Action/Show.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/inc/Action/Show.php b/inc/Action/Show.php
index 6dbe9a15c..a5cb53449 100644
--- a/inc/Action/Show.php
+++ b/inc/Action/Show.php
@@ -22,6 +22,12 @@ class Show extends AbstractAction {
         return AUTH_READ;
     }
 
+    /** @inheritdoc */
+    public function preProcess() {
+        global $ID;
+        unlock($ID);
+    }
+
     /** @inheritdoc */
     public function tplContent() {
         html_show();
-- 
GitLab