if($model->id != Yii::app()->user->id)
{
if(!Yii::app()->user->isAdmin()) {
throw new CHttpException(403,'You are not authorized to perform this action.');
}
}
No comments:
Post a Comment