Subversion Repositories SmartDukaan

Rev

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

Rev 16966 Rev 16989
Line 49... Line 49...
49
				Configure::load('live');
49
				Configure::load('live');
50
				break;
50
				break;
51
		}
51
		}
52
		$facebookConfig = Configure::read("Facebook");		
52
		$facebookConfig = Configure::read("Facebook");		
53
		$categories = Configure::read('Categories');
53
		$categories = Configure::read('Categories');
54
		if($this->params->params['controller'] == 'categories' || $this->params->params['controller'] == 'orders' ){
54
		if($this->params->params['controller'] == 'categories' || $this->params->params['controller'] == 'orders' ||  $this->params->params['controller'] == 'store_products' ||  $this->params->params['controller'] == 'brands'){
55
			//Check access for apps tab
55
			//Check access for apps tab
56
			$userId = $this->request->query('user_id');
56
			$userId = $this->request->query('user_id');
57
			if($this->isAuthorized()) {
57
			if($this->isAuthorized()) {
58
				$userId = $this->Auth->user('id');
58
				$userId = $this->Auth->user('id');
59
			}
59
			}