public function actionLoadMassDeleteDemoData() { if (!Group::isUserASuperAdministrator(Yii::app()->user->userModel)) { throw new NotSupportedException(); } UserInterfaceDevelopmentUtil::makeMassDeleteData(); }
public function actionLoadMassDeleteDemoData() { if (Yii::app()->user->userModel->username != 'super') { throw new NotSupportedException(); } UserInterfaceDevelopmentUtil::makeMassDeleteData(); }