Subversion Repositories SmartDukaan

Rev

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

Rev 16679 Rev 16681
Line 59... Line 59...
59
			$this->Appacl->recursive = -1;
59
			$this->Appacl->recursive = -1;
60
			$conditions = array('user_id'=>$this->Auth->User('id'));
60
			$conditions = array('user_id'=>$this->Auth->User('id'));
61
			$access = $this->Appacl->find('first',array('conditions'=>$conditions));		
61
			$access = $this->Appacl->find('first',array('conditions'=>$conditions));		
62
			if(empty($access) || $access['Appacl']['access']==0){
62
			if(empty($access) || $access['Appacl']['access']==0){
63
				unset($categories[2]);
63
				unset($categories[2]);
-
 
64
				$this->set('noappcashback',true);
64
			}		
65
			}		
65
			Cache::write($cachekey,$access,'day');
66
			Cache::write($cachekey,$access,'day');
66
		}
67
		}
67
		//Facebook configuration
68
		//Facebook configuration
68
		$this->set('fbappid', $facebookConfig['fbappid']);
69
		$this->set('fbappid', $facebookConfig['fbappid']);