Class: UffizziCore::Api::Cli::V1::Account::CredentialsPolicy
- Inherits:
-
UffizziCore::ApplicationPolicy
- Object
- UffizziCore::ApplicationPolicy
- UffizziCore::Api::Cli::V1::Account::CredentialsPolicy
- Defined in:
- app/policies/uffizzi_core/api/cli/v1/account/credentials_policy.rb
Instance Method Summary collapse
Instance Method Details
#check_credential? ⇒ Boolean
12 13 14 |
# File 'app/policies/uffizzi_core/api/cli/v1/account/credentials_policy.rb', line 12 def check_credential? context.user_access_module.admin_access_to_account?(context.user, context.account) end |
#create? ⇒ Boolean
8 9 10 |
# File 'app/policies/uffizzi_core/api/cli/v1/account/credentials_policy.rb', line 8 def create? context.user_access_module.admin_access_to_account?(context.user, context.account) end |
#destroy? ⇒ Boolean
16 17 18 |
# File 'app/policies/uffizzi_core/api/cli/v1/account/credentials_policy.rb', line 16 def destroy? context.user_access_module.admin_access_to_account?(context.user, context.account) end |
#index? ⇒ Boolean
4 5 6 |
# File 'app/policies/uffizzi_core/api/cli/v1/account/credentials_policy.rb', line 4 def index? context.user_access_module.admin_access_to_account?(context.user, context.account) end |