Subversion Repositories SmartDukaan

Rev

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

Rev 17684 Rev 17979
Line 466... Line 466...
466
 
466
 
467
	public function skus($bundleIds) {
467
	public function skus($bundleIds) {
468
		$userId = $this->request->query('user_id');
468
		$userId = $this->request->query('user_id');
469
		if(isset($userId) && !empty($userId)) {
469
		if(isset($userId) && !empty($userId)) {
470
			$this->loadModel('User');
470
			$this->loadModel('User');
-
 
471
			$this->User->recursive = -1;
471
			$dbuser = $this->User->findById($userId);
472
			$dbuser = $this->User->findById($userId);
472
			$this->Auth->login($dbuser['User']);
473
			$this->Auth->login($dbuser['User']);
473
		}
474
		}
474
		//Fetch list of bundleIds from api
475
		//Fetch list of bundleIds from api
475
		$url = $this->apihost.'getDealsForNotification/'.$bundleIds;
476
		$url = $this->apihost.'getDealsForNotification/'.$bundleIds;