RooPostTrait.php
[Pman.Core] / RooPostTrait.php
index 81b29a0..1863bcf 100644 (file)
@@ -90,23 +90,16 @@ trait Pman_Core_RooPostTrait {
      */                     
      
     function post($tab) // update / insert (?? delete??)
-    {
-        // -- why was this put in? - Roo is not related to Core.All ?
-        //if (!$this->hasPerm("Core.All", 'E'))  {
-        //        $this->jerr("PERMISSION DENIED (e)");
-        //}
-        
-        
+    {   
         PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError'));
     
-        //DB_DataObject::debugLevel(1);
         $this->checkDebug();
         
         if (!empty($_REQUEST['_get'])) {
             return $this->get($tab);
         }
         
-        $this->init(); // for pman.
+        $this->init();
          
         $x = $this->dataObject($tab);