Sha256: dd974e57948b21baa8c350ad904315ca9eb1c69e26ff0580a556644204faf1a4

Contents?: true

Size: 242 Bytes

Versions: 42

Compression:

Stored size: 242 Bytes

Contents

class AccountAccessPolicy
  # Contains all the rules for which requestors can do what with which Account objects.

  def self.action_allowed?(action, requestor, account)
    case action
    when :search # Anyone
      true
    end
  end

end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
openstax_accounts-8.0.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.13.1 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.13.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.12.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.11.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.10.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.9.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.8.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.7.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.6.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.5.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.4.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.3.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.2.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.1.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.0.1 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-7.0.0 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-6.4.2 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-6.4.1 spec/dummy/app/access_policies/account_access_policy.rb
openstax_accounts-6.4.0 spec/dummy/app/access_policies/account_access_policy.rb