Subversion Repositories SmartDukaan

Rev

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

Rev 20334 Rev 20497
Line 105... Line 105...
105
		$this->apihost = Configure::read('pythonapihost');
105
		$this->apihost = Configure::read('pythonapihost');
106
		$this->limit = Configure::read('dealsperpage');	
106
		$this->limit = Configure::read('dealsperpage');	
107
		$staticVersion = Configure::read('staticversion');
107
		$staticVersion = Configure::read('staticversion');
108
		$this->set('staticversion',$staticVersion);
108
		$this->set('staticversion',$staticVersion);
109
		$this->set('requiremobileverification',Configure::read('requiremobileverification'));			
109
		$this->set('requiremobileverification',Configure::read('requiremobileverification'));			
110
		$debugusers = Configure::read('debugusers');
-
 
111
// 		if($id = $this->isAuthorized()){
-
 
112
			if(in_array($userId, $debugusers)){
-
 
113
				$this->Cookie->write('debuguser',1);
-
 
114
			}else{
-
 
115
				$this->Cookie->delete('debuguser');
-
 
116
			}
110
 
117
// 		}
-
 
118
		//acl
111
		//acl
119
		$cachekey = 'acls';
112
		$cachekey = 'acls';
120
		$acls = Cache::read($cachekey,'month');
113
		$acls = Cache::read($cachekey,'month');
121
		if(empty($acls)) {
114
		if(empty($acls)) {
122
			$acls = array();
115
			$acls = array();