[BUGFIX] Release locked records during logout
authorTolleiv Nietsch <info@tolleiv.de>
Sat, 4 Feb 2012 08:08:34 +0000 (09:08 +0100)
committerTolleiv Nietsch <info@tolleiv.de>
Tue, 7 Feb 2012 07:48:51 +0000 (08:48 +0100)
The sys_lockedrecords tables isn't cleared during the users logout.

Change-Id: I789cf1736a1b00760b54f8efddaffd633b47f4f5
Fixes: #20211
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/8884
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
t3lib/class.t3lib_userauth.php

index 8f69d5c..8455cdb 100644 (file)
@@ -866,6 +866,9 @@ class t3lib_userAuth {
                        t3lib_div::devLog('logoff: ses_id = ' . $this->id, 't3lib_userAuth');
                }
 
+                       // Release the locked records
+               t3lib_BEfunc::lockRecords();
+
                        // Hook for pre-processing the logoff() method, requested and implemented by andreas.otto@dkd.de:
                if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'])) {
                        $_params = array();