Subversion Repositories SmartDukaan

Rev

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

Rev 16729 Rev 16966
Line 583... Line 583...
583
    	$url = Configure::read('pythonapihost').'retailerActivated/'.$id;
583
    	$url = Configure::read('pythonapihost').'retailerActivated/'.$id;
584
    	$this->make_request($url,null);
584
    	$this->make_request($url,null);
585
    	$this->loadModel('User');
585
    	$this->loadModel('User');
586
    	$sql = "UPDATE users SET activation_time = NOW() WHERE id = $id";
586
    	$sql = "UPDATE users SET activation_time = NOW() WHERE id = $id";
587
    	$this->User->query($sql);
587
    	$this->User->query($sql);
-
 
588
    	$this->loadModel('Appacl');
-
 
589
    	$data = array('user_id'=>$id,'access'=>1);
-
 
590
		$count = $this->Appacl->find('count',array('conditions'=> $data));
-
 
591
		if($count==0){
-
 
592
			$this->Appacl->create();
-
 
593
			$this->Appacl->save($data);
-
 
594
		}	
588
    }
595
    }
589
}
596
}