Class: UffizziCore::Api::Cli::V1::Projects::Clusters::IngressesPolicy

Inherits:
UffizziCore::ApplicationPolicy
  • Object
show all
Defined in:
app/policies/uffizzi_core/api/cli/v1/projects/clusters/ingresses_policy.rb

Instance Method Summary collapse

Instance Method Details

#index?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
# File 'app/policies/uffizzi_core/api/cli/v1/projects/clusters/ingresses_policy.rb', line 4

def index?
  return true if context.user_access_module.admin_access_to_project?(context.user, context.project)

  context.cluster.deployed_by_id == context.user.id
end