Class: UffizziCore::Api::Cli::V1::Accounts::CredentialsPolicy
- Inherits:
-
UffizziCore::ApplicationPolicy
- Object
- UffizziCore::ApplicationPolicy
- UffizziCore::Api::Cli::V1::Accounts::CredentialsPolicy
- Defined in:
- app/policies/uffizzi_core/api/cli/v1/accounts/credentials_policy.rb
Instance Method Summary collapse
- #check_credential? ⇒ Boolean
- #create? ⇒ Boolean
- #destroy? ⇒ Boolean
- #index? ⇒ Boolean
- #update? ⇒ Boolean
Instance Method Details
#check_credential? ⇒ Boolean
16 17 18 |
# File 'app/policies/uffizzi_core/api/cli/v1/accounts/credentials_policy.rb', line 16 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/accounts/credentials_policy.rb', line 8 def create? context.user_access_module.admin_access_to_account?(context.user, context.account) end |
#destroy? ⇒ Boolean
20 21 22 |
# File 'app/policies/uffizzi_core/api/cli/v1/accounts/credentials_policy.rb', line 20 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/accounts/credentials_policy.rb', line 4 def index? context.user_access_module.admin_access_to_account?(context.user, context.account) end |
#update? ⇒ Boolean
12 13 14 |
# File 'app/policies/uffizzi_core/api/cli/v1/accounts/credentials_policy.rb', line 12 def update? context.user_access_module.admin_access_to_account?(context.user, context.account) end |