Changeset 614

Show
Ignore:
Timestamp:
06/30/08 18:21:16 (4 months ago)
Author:
aarkerio
Message:

Liitle fixes}

Location:
trunk/app/controllers
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/messages_controller.php

    r604 r614  
    1616 public function beforeFilter()  
    1717 { 
    18    parent::beforeFilter(); 
    19  
    20    if ( $this->Auth->user() ): 
     18  parent::beforeFilter(); 
     19 
     20  if ( $this->Auth->user() ): 
    2121         $this->Auth->allow(array('message','deliver','listing','compose','display','add','send','autocomplete','sentmessages','delete')); 
    22    else: 
     22  else: 
    2323         $this->redirect('/users/login'); 
    2424         return false; 
    25    endif; 
     25  endif; 
    2626 } 
    2727 
  • trunk/app/controllers/users_controller.php

    r590 r614  
    619619 { 
    620620    $this->layout    = 'admin'; 
    621      
     621 
     622    if ( $this->data['User']['file']['error'] != 0 ): 
     623      $this->flash('Something where wrong, please push Back button', '/admin/users/edit/'); 
     624      return false; 
     625    endif; 
     626 
    622627    if (!empty($this->data['User']) && is_uploaded_file($this->data['User']['file']['tmp_name'])) 
    623628    {