public function beforeAction($action)
 {
     if (!isset($this->layout)) {
         $this->layout = Yum::module('profile')->layout;
     }
     return parent::beforeAction($action);
 }
 public function beforeAction($action)
 {
     if (!Yum::module('profile')->enablePrivacySetting) {
         throw new CHttpException(404);
     }
     return parent::beforeAction($action);
 }
 public function beforeAction($action)
 {
     if (!Yum::hasModule('friendship')) {
         return false;
     }
     return parent::beforeAction($action);
 }
	public function beforeAction($action) {
		if (!Yii::app()->user->isGuest) 
			$this->redirect(Yii::app()->user->returnUrl);

		$this->layout = Yum::module('registration')->layout;
		return parent::beforeAction($action);
	}
	public function beforeAction($action) {
		// Disallow guests
		if(Yii::app()->user->isGuest)
			$this->redirect(Yum::module()->loginUrl);

		return parent::beforeAction($action);
	}
 public function beforeAction($event)
 {
     if (Yii::app()->user->isAdmin()) {
         $this->layout = Yum::module()->adminLayout;
     } else {
         $this->layout = Yum::module()->layout;
     }
     return parent::beforeAction($event);
 }
	public function beforeAction($action) {
		if(!Yum::hasModule('registration'))
			throw new CHttpException(401, 'Please activate the registration submodule in your config/main.php. See the installation instructions or registration/RegistrationModule.php for details');

		if(!Yii::app()->user->isGuest) 
			$this->redirect(Yii::app()->user->returnUrl);

		$this->layout = Yum::module('registration')->layout;
		return parent::beforeAction($action);
	}
 public function beforeAction($event)
 {
     if (!Yii::app()->user instanceof YumWebUser) {
         throw new CException(Yum::t('Please make sure that Yii uses the YumWebUser component instead of CWebUser in your config/main.php components section. Please see the installation instructions.'));
     }
     if (Yii::app()->user->isAdmin()) {
         $this->layout = Yum::module()->adminLayout;
     } else {
         $this->layout = Yum::module()->layout;
     }
     return parent::beforeAction($event);
 }
 public function beforeAction($action)
 {
     if (!Yum::hasModule('registration')) {
         throw new CHttpException(401, 'Please activate the registration submodule in your config/main.php. See the installation instructions or registration/RegistrationModule.php for details');
     }
     if (!Yum::hasModule('profile')) {
         throw new CHttpException(401, 'The Registration submodule depends on the profile submodule. Please see the installation instructions or registration/RegistrationModule.php for details');
     }
     Yii::import('profile.models.*');
     Yii::import('registration.models.*');
     if (!Yii::app()->user->isGuest) {
         $this->redirect(Yii::app()->user->returnUrl);
     }
     $this->layout = Yum::module('registration')->layout;
     return parent::beforeAction($action);
 }