GroupCountries.php
authorChris <chris@roojs.com>
Tue, 18 Mar 2014 13:44:58 +0000 (21:44 +0800)
committerChris <chris@roojs.com>
Tue, 18 Mar 2014 13:44:58 +0000 (21:44 +0800)
GroupCountries.php

index e22a0e2..fbdc691 100644 (file)
@@ -11,6 +11,25 @@ class Pman_Core_GroupCountries extends Pman
 {
     //put your code here
     
-    
+    function getAuth() {
+        parent::getAuth(); // load company!
+        $au = $this->getAuthUser();
+        if (!$au) {
+            $this->jerr("Not authenticated", array('authFailure' => true));
+        }
+        if ($au->company()->comptype != 'OWNER') {
+            $this->jerr("Permission Denied" );
+        }
+        $this->authUser = $au;
+        return true;
+    }
+    function get()
+    {
+        $this->post();
+    }
+    function post()
+    {
+        
+    }
     
 }