DataObjects/Core_company.php
[Pman.Core] / DataObjects / Core_company.php
index 1682d44..b05d77b 100644 (file)
@@ -122,7 +122,9 @@ class Pman_Core_DataObjects_Core_Company extends DB_DataObject
     }
     
     // ---------- AUTHENTICATION
-     function isAuth()
+    // not sure where authetnication via company is used?? posibly media-outreach
+    
+    function isAuth()
     {
         $db = $this->getDatabaseConnection();
         $sesPrefix = $db->dsn['database'];
@@ -283,6 +285,9 @@ class Pman_Core_DataObjects_Core_Company extends DB_DataObject
         ){
             $roo->jerr('This company is not allow to delete');
         }
+    }
+    function onDelete($req, $roo)
+    {
         $img = DB_DataObject::factory('Images');
         $img->ontable = $this->tableName();
         $img->onid = $this->id;