in my application I use an own Controller with a beforeAction method which will check the permissions of the user to see this fired document. If the user have not the permission to show this site the user will redirected to a notAllowed action in my core module if he isn't logged in the user will redirect to the login url in my application:
protected function beforeAction($action) {
$module = (null !== $this->module) ? $this->module->id : '';
$access = $module.ucfirst($this->id).ucfirst($this->action->id);
if(in_array($access, $this->allowedAccess())) {
return true;
}
if(false === Yii::app()->user->checkAccess($access) && false === Yii::app()->user->isGuest) {
return true;
}
elseif(false === Yii::app()->user->checkAccess($access) && true === Yii::app()->user->isGuest) {
Yii::app()->request->redirect(Yii::app()->createUrl(Yii::app()->user->loginUrl));
}
}With this method version the yiic shell will not prompt the shell but the profiling table?!? If i commented the line
Yii::app()->request->redirect(Yii::app()->createUrl(Yii::app()->user->loginUrl));yiic shell will work fine. Any ideas to fix this problem?

Help
















