Example #1
0
 public function feedbacksAction()
 {
     if (Zend_Auth::getInstance()->hasIdentity()) {
         $db = new Application_Model_Users();
         $select = $db->select()->where("email = ?", Zend_Auth::getInstance()->getIdentity()->email);
         $role = $db->fetchRow($select)['role'];
         if ($role != 1) {
             $this->_redirect('/');
         }
     }
 }