{
//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()
+ {
+
+ }
}