Added feature #13949: Hookrequest - alt_doc::makeEditForm() to enable further access...
authorSteffen Kamper <info@sk-typo3.de>
Sat, 10 Apr 2010 21:10:17 +0000 (21:10 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sat, 10 Apr 2010 21:10:17 +0000 (21:10 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7276 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/alt_doc.php

index 64dd254..445a7c0 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-04-10  Steffen Kamper  <info@sk-typo3.de>
 
+       * Added feature #13949: Hookrequest - alt_doc::makeEditForm() to enable further access-restrictions (thanks to Tolleiv Nietsch)
        * Added feature #13948: Hookrequest - tslib_fe pre/post process for settingLanguage() (thanks to Tolleiv Nietsch)
        * Added feature #13947: Hookrequest - tslib_menu should provide hook for further filtering (thanks to Tolleiv Nietsch)
        * Added feature #13952: Hookrequest - t3lib_page::getPageOverlay (thanks to Tolleiv Nietsch)
index 4541eae..24eff76 100644 (file)
@@ -706,6 +706,18 @@ class SC_alt_doc {
                                                                } else $hasAccess = 0;
                                                        }
 
+                                                       if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_doc.php']['makeEditForm_accessCheck']))       {
+                                                               foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_doc.php']['makeEditForm_accessCheck'] as $_funcRef)       {
+                                                                       $_params = array(
+                                                                               'table'         =>      $table,
+                                                                               'uid'           =>      $theUid,
+                                                                               'cmd'           =>      $cmd,
+                                                                               'hasAccess' => $hasAccess
+                                                                       );
+                                                                       $hasAccess = t3lib_div::callUserFunction($_funcRef, $_params, $this);
+                                                               }
+                                                       }
+
                                                        // AT THIS POINT we have checked the access status of the editing/creation of records and we can now proceed with creating the form elements:
 
                                                        if ($hasAccess) {