Пример #1
0
 function getAuth()
 {
     parent::getAuth();
     $au = $this->getAuthUser();
     if (!$au || $au->company()->comptype != 'OWNER') {
         $this->jerrAuth();
     }
     return true;
 }
Пример #2
0
 function getAuth()
 {
     parent::getAuth();
     $au = $this->getAuthUser();
     if (!$au) {
         $this->jerr("Not authenticated", array('authFailure' => true));
     }
     $this->authUser = $au;
     return true;
 }
Пример #3
0
 function getAuth()
 {
     parent::getAuth();
     // load company!
     $au = $this->getAuthUser();
     if (!$au || !$au->pid()) {
         die("authenticated Users only");
     }
     $this->authUser = $au;
     return true;
 }
Пример #4
0
 function getAuth()
 {
     parent::getAuth();
     // load company!
     //return true;
     $au = $this->getAuthUser();
     if (!$au) {
         die("Access denied");
     }
     $this->authUser = $au;
     return true;
 }
Пример #5
0
 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;
 }
Пример #6
0
 function getAuth()
 {
     parent::getAuth();
     // load company!
     //return true;
     $au = $this->getAuthUser();
     //if (!$au) {
     //    $this->jerr("Not authenticated", array('authFailure' => true));
     //}
     $this->authUser = $au;
     $ff = HTML_FlexyFramework::get();
     $opts = empty($ff->Pman_Core_I18N) ? empty($ff->Pman_I18N) ? array() : $ff->Pman_I18N : $ff->Pman_Core_I18N;
     return true;
 }
Пример #7
0
 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("Error", "only company owners can manage groups");
     }
     $this->authUser = $au;
     return true;
 }
Пример #8
0
 function getAuth()
 {
     parent::getAuth();
     // load company!
     $au = $this->getAuthUser();
     if (!$au) {
         $this->jerr("Not authenticated", array('authFailure' => true));
     }
     if (!$au->pid()) {
         // not set up yet..
         $this->jerr("Not authenticated", array('authFailure' => true));
     }
     $this->authUser = $au;
     return true;
 }
Пример #9
0
 function getAuth()
 {
     $ff = HTML_FlexyFramework::get();
     if (!empty($ff->cli)) {
         $this->cli = true;
         return true;
     }
     parent::getAuth();
     // load company!
     $au = $this->getAuthUser();
     if (!$au || $au->company()->comptype != 'OWNER') {
         $this->jerr("Not authenticated", array('authFailure' => true));
     }
     $this->authUser = $au;
     return true;
 }
Пример #10
0
 function getAuth()
 {
     $o = PEAR::getStaticProperty('HTML_FlexyFramework', 'options');
     if (!empty($o['cli'])) {
         $this->cli = true;
         return true;
     }
     parent::getAuth();
     // load company!
     $au = $this->getAuthUser();
     if (!$au || $au->company()->comptype != 'OWNER') {
         $this->jerr("Not authenticated", array('authFailure' => true));
     }
     $this->authUser = $au;
     return true;
 }
Пример #11
0
 function getAuth()
 {
     parent::getAuth();
     return true;
 }
Пример #12
0
 function getAuth()
 {
     parent::getAuth();
     // load company..
     return true;
 }