Added hook to class.t3lib_userauthgroup.php, function recordEditAccessInternals
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 27 Mar 2007 15:15:58 +0000 (15:15 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 27 Mar 2007 15:15:58 +0000 (15:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2203 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_userauthgroup.php

index e870d4b..179d51e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-03-27     Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Added hook to class.t3lib_userauthgroup.php, function recordEditAccessInternals
+
 2007-03-23     Dmitry Dulepov  <dmitry@typo3.org>
 
        * Fixed bug 5269: wsol_preview.php does not scroll to content element
index 86d25fa..26f77c9 100755 (executable)
@@ -611,6 +611,20 @@ class t3lib_userAuthGroup extends t3lib_userAuth {
                                // Checking record permissions
                        // THIS is where we can include a check for "perms_" fields for other records than pages...
 
+                               // Process any hooks
+                       if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['recordEditAccessInternals']))    {
+                               foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['recordEditAccessInternals'] as $funcRef)     {
+                                       $params = array(
+                                               'table' => $table,
+                                               'idOrRow' => $idOrRow,
+                                               'newRecord' => $newRecord
+                                       );
+                                       if (!t3lib_div::callUserFunction($funcRef, $params, $this)) {
+                                               return FALSE;
+                                       }
+                               }
+                       }
+
                                // Finally, return true if all is well.
                        return TRUE;
                }