EventView.php
[Pman.Admin] / EventView.php
index e69de29..91880ed 100644 (file)
@@ -0,0 +1,32 @@
+<?php
+
+
+require_once 'Pman.php';
+
+class Pman_Admin_EventView extends Pman
+{
+    
+    function getAuth()
+    {
+        parent::getAuth();
+        $au = $this->getAuthUser();
+        if (!$au || $au->company()->comptype != 'OWNER') {
+            $this->jerrAuth();
+        }
+        return true;
+        
+        
+    }
+    
+    function get($id)
+    {
+        $ev = DB_DataObject::Factory('Events');
+        $ev->get($id);
+        
+        // verify if not admin, then they should 
+        
+        
+    }
+    
+    
+}