/** * Creates a new model. * If creation is successful, the browser will be redirected to the 'view' page. * * @param $scenario */ public function actionCreate($scenario = null) { $this->accessGranted(User::ROLE_ADMIN); parent::actionCreate('create'); }