public function preview_onUnban($recordId = null)
    {
        $model = $this->formFindModelObject($recordId);

        $model->unban();

        Flash::success(Lang::get('rainlab.user::lang.users.unbanned_success'));

        if ($redirect = $this->makeRedirect('update-close', $model)) {
            return $redirect;
        }
    }
public function preview_onUnban($recordId = null)
    {
        $model = $this->formFindModelObject($recordId);

        $model->unban();

        Flash::success(Lang::get('rainlab.user::lang.users.unbanned_success'));

        if ($redirect = $this->makeRedirect('update-close', $model)) {
            return $redirect;
        }
    }
public function preview_onUnban ( $ recordId = null ) { $ model = $ this -> formFindModelObject ( $ recordId ) ; $ model -> unban ( ) ; Flash :: success ( Lang :: get ( 'rainlab.user::lang.users.unbanned_success' ) ) ; if ( $ redirect = $ this -> makeRedirect ( 'update-close' , $ model ) ) { return $ redirect ; } }
Manually unban a user
Manually unban a user