An error occurred while fetching the assigned milestone of the selected merge_request.
BE: Allow customers to extend or reactivate their trial on gitlab.com [RUN ALL RSPEC] [RUN AS-IF-FOSS]
All threads resolved!
Compare changes
Files
10+ 20
− 18
@@ -17,24 +17,6 @@ def new
@@ -17,24 +17,6 @@ def new
return render_403 unless %w[GitlabSubscription::TRIAL_EXTENDED GitlabSubscription::TRIAL_REACTIVATED].include?(params[:trial_extension_type])
return render_403 if params[:trial_extension_type].to_i == GitlabSubscription::TRIAL_EXTENDED && !@namespace.can_extend?
return render_403 if params[:trial_extension_type].to_i == GitlabSubscription::TRIAL_REACTIVATED && !@namespace.can_reactivate?
@result = GitlabSubscriptions::ExtendReactivateTrialService.new.execute(extend_reactivate_trial_params)
@@ -69,6 +51,26 @@ def apply
@@ -69,6 +51,26 @@ def apply