Subversion Repositories SmartDukaan

Rev

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

Rev 19798 Rev 19804
Line 625... Line 625...
625
		    if (!empty($next)) {
625
		    if (!empty($next)) {
626
				header('location:' . $next);
626
				header('location:' . $next);
627
				exit();
627
				exit();
628
		    }
628
		    }
629
		    $user = $this->User->read(null, $this->Auth->User('id'));		 
629
		    $user = $this->User->read(null, $this->Auth->User('id'));		 
630
		    if ($user['User']['group_id'] == 2) {
630
		    if ($user['User']['group_id'] == 2 || $user['User']['group_id'] == 6 || $user['User']['group_id'] == 99) {
631
				$this->redirect(array('controller' => 'administration', 'action' => 'dashboard'));
631
				$this->redirect(array('controller' => 'administration', 'action' => 'dashboard'));
632
				exit();
632
				exit();
633
		    }
633
		    }
634
			if ($user['User']['group_id'] == 1) {
634
			if ($user['User']['group_id'] == 1) {
635
				$this->redirect(array('controller' => 'deals', 'action' => 'mine?user_id='.$user['User']['id']));
635
				$this->redirect(array('controller' => 'deals', 'action' => 'mine?user_id='.$user['User']['id']));