protected function getDisabledValue() { if (!Yii::app()->user->userModel->isRootUser) { return 'disabled'; } return parent::getDisabledValue(); }