Skip to content

Commit

Permalink
[#1307] added check for plan
Browse files Browse the repository at this point in the history
  • Loading branch information
lidiamokevnina committed Jul 23, 2024
1 parent cfb53e2 commit 164a833
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ module UffizziCore::Api::Cli::V1::Projects::ClustersControllerModule
def update_show_trial_quota_exceeded_warning; end

def check_account_quota; end

def check_current_plan; end
end
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ module UffizziCore::Api::Cli::V1::Projects::DeploymentsControllerModule
def check_account_quota; end

def update_show_trial_quota_exceeded_warning; end

def check_current_plan; end
end
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class UffizziCore::Api::Cli::V1::Projects::ClustersController < UffizziCore::Api

before_action :authorize_uffizzi_core_api_cli_v1_projects_clusters
before_action :check_account_quota, only: [:create]
before_action :check_current_plan
after_action :update_show_trial_quota_exceeded_warning, only: [:create, :destroy]

def index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class UffizziCore::Api::Cli::V1::Projects::DeploymentsController < UffizziCore::

before_action :authorize_uffizzi_core_api_cli_v1_projects_deployments
before_action :check_account_quota, only: :create
before_action :check_current_plan
after_action :update_show_trial_quota_exceeded_warning, only: :destroy

# Get a list of active deployements for a project
Expand Down

0 comments on commit 164a833

Please sign in to comment.