plugin_status = $plugin_status; $this->flash = $flash; } /** * @return null|View_Response|Redirection_Response */ public function handle() { if ( ! $this->plugin_status->client_completed_registration() ) { if ( current_user_can( Capabilities::ADMIN ) ) { $this->flash->add_message( 'error', 'account-required' ); return $this->redirection( Route::SUBMENU_DASHBOARD, Route::ACTION_CREATE_ACCOUNT ); } return $this->view( Views::NOT_ENABLED ); } return $this->next->handle(); } }