Class: UffizziCore::Api::Cli::V1::Account::CredentialsPolicy

Inherits:
UffizziCore::ApplicationPolicy
  • Object
show all
Defined in:
app/policies/uffizzi_core/api/cli/v1/account/credentials_policy.rb

Instance Method Summary collapse

Instance Method Details

#check_credential?Boolean

Returns:

  • (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.)
end

#create?Boolean

Returns:

  • (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.)
end

#destroy?Boolean

Returns:

  • (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.)
end

#index?Boolean

Returns:

  • (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.)
end