Subversion Repositories SmartDukaan

Rev

Rev 20485 | Rev 20492 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20485 Rev 20491
Line 1564... Line 1564...
1564
				$this->Session->setFlash(__('User could not be updated'));
1564
				$this->Session->setFlash(__('User could not be updated'));
1565
			}		
1565
			}		
1566
		}
1566
		}
1567
		return $this->redirect($this->referer());
1567
		return $this->redirect($this->referer());
1568
	}
1568
	}
1569
	public function userunreachable($user_id){
1569
	public function userunreachable($id){
1570
		$this->User->id = $id;
1570
		$this->User->id = $id;
1571
		if (!$this->User->exists()) {
1571
		if (!$this->User->exists()) {
1572
			throw new NotFoundException(__('Invalid user'));
1572
			throw new NotFoundException(__('Invalid user'));
1573
		} else {
1573
		} else {
1574
			if($this->User->save(array('status'=>3))){
1574
			if($this->User->save(array('status'=>3))){