Followup to #485: Hookrequest for ~ TemplaVoila unlink doesn't work for Non-Admins...
authorBenni Mack <benni.mack@typo3.org>
Fri, 11 Jun 2010 21:48:03 +0000 (21:48 +0000)
committerBenni Mack <benni.mack@typo3.org>
Fri, 11 Jun 2010 21:48:03 +0000 (21:48 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7880 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index 1831dbc..dcfa155 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-11  Benjamin Mack  <benni@typo3.org>
+
+       * Followup to #485: Hookrequest for ~ TemplaVoila unlink doesn't work for Non-Admins - added an additional hook parameter (Thanks to Tolleiv Nietsch)
+
 2010-06-11  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #14682: ExtJS removes font-weight and font-style from several tags (Thanks to Steffen Gebert)
index ee91c8d..2a1840f 100644 (file)
@@ -757,7 +757,7 @@ class t3lib_TCEmain {
                                                        $status = 'new';                                                // Yes new record, change $record_status to 'insert'
                                                } else {        // Nope... $id is a number
                                                        $fieldArray = array();
-                                                       $recordAccess = $this->checkRecordUpdateAccess($table, $id, $data, $hookObjectsArr);
+                                                       $recordAccess = $this->checkRecordUpdateAccess($table, $id, $incomingFieldArray, $hookObjectsArr);
                                                        if (!$recordAccess)             {
                                                                $propArr = $this->getRecordProperties($table,$id);
                                                                $this->log($table,$id,2,0,1,"Attempt to modify record '%s' (%s) without permission. Or non-existing page.",2,array($propArr['header'],$table.':'.$id),$propArr['event_pid']);