Subversion Repositories SmartDukaan

Rev

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

Rev 18788 Rev 18806
Line 1141... Line 1141...
1141
	}
1141
	}
1142
	
1142
	
1143
	public function admin_usersanctions(){
1143
	public function admin_usersanctions(){
1144
		$url = Configure::read('saholicapihost').'counter!getUsersSanctionDetails';
1144
		$url = Configure::read('saholicapihost').'counter!getUsersSanctionDetails';
1145
		$response = $this->make_request ( $url, null );
1145
		$response = $this->make_request ( $url, null );
1146
		$userSanctions = $response['response']['userSanctions'];
1146
		$userSanctions = $response['response']['userSanctions']['userSanctions'];
1147
		$this->loadModel('UserAccount');
1147
		$this->loadModel('UserAccount');
1148
		$usersMap = array();
1148
		$usersMap = array();
1149
		foreach($userSanctions AS $userSanction){
1149
		foreach($userSanctions AS $userSanction){
1150
			$options = array('conditions'=>array('account_key'=>$userSanction['user_id'],'account_type'=>'saholic'),'recursive'=>-1,'fields'=>'user_id');
1150
			$options = array('conditions'=>array('account_key'=>$userSanction['user_id'],'account_type'=>'saholic'),'recursive'=>-1,'fields'=>'user_id');
1151
			$userId = $this->UserAccount->find('first',$options);
1151
			$userId = $this->UserAccount->find('first',$options);