DataObjects/Events.php
authorAlan Knowles <alan@roojs.com>
Thu, 6 Oct 2011 04:31:51 +0000 (12:31 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 6 Oct 2011 04:31:51 +0000 (12:31 +0800)
DataObjects/Events.php

index 90ecc27..430acc4 100644 (file)
@@ -57,7 +57,13 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
         
             
     }
-     
+    /**
+     * check who is trying to access this. false == access denied..
+     */
+    function checkPerm($lvl, $au) 
+    {
+        return $lvl == 'S' && $au->hasPerm("Admin.Admin_Tab", $lvl);
+    } 
     /**
      * init:
      * Initialize an event - ready to insert..