Class: UffizziCore::Api::Cli::V1::Projects::ComposeFilesPolicy
- Inherits:
-
UffizziCore::ApplicationPolicy
- Object
- UffizziCore::ApplicationPolicy
- UffizziCore::Api::Cli::V1::Projects::ComposeFilesPolicy
- Defined in:
- app/policies/uffizzi_core/api/cli/v1/projects/compose_files_policy.rb
Instance Method Summary collapse
Instance Method Details
#create? ⇒ Boolean
8 9 10 |
# File 'app/policies/uffizzi_core/api/cli/v1/projects/compose_files_policy.rb', line 8 def create? context.user_access_module.admin_or_developer_access_to_project?(context.user, context.project) end |
#destroy? ⇒ Boolean
12 13 14 |
# File 'app/policies/uffizzi_core/api/cli/v1/projects/compose_files_policy.rb', line 12 def destroy? context.user_access_module.admin_or_developer_access_to_project?(context.user, context.project) end |
#show? ⇒ Boolean
4 5 6 |
# File 'app/policies/uffizzi_core/api/cli/v1/projects/compose_files_policy.rb', line 4 def show? context.user_access_module.any_access_to_project?(context.user, context.project) end |