Class: UffizziCore::Api::Cli::V1::AccountsPolicy
- Inherits:
-
UffizziCore::ApplicationPolicy
- Object
- UffizziCore::ApplicationPolicy
- UffizziCore::Api::Cli::V1::AccountsPolicy
- Defined in:
- app/policies/uffizzi_core/api/cli/v1/accounts_policy.rb
Instance Method Summary collapse
Instance Method Details
#index? ⇒ Boolean
4 5 6 |
# File 'app/policies/uffizzi_core/api/cli/v1/accounts_policy.rb', line 4 def index? context.user.present? end |
#show? ⇒ Boolean
8 9 10 |
# File 'app/policies/uffizzi_core/api/cli/v1/accounts_policy.rb', line 8 def show? context.user_access_module.any_access_to_account?(context.user, context.account) end |
#update? ⇒ Boolean
12 13 14 |
# File 'app/policies/uffizzi_core/api/cli/v1/accounts_policy.rb', line 12 def update? false end |