Module: Authist::Authism

Extended by:
ActiveSupport::Concern
Defined in:
lib/authist/authism.rb

Instance Method Summary collapse

Instance Method Details

#has_access?(access_type) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/authist/authism.rb', line 10

def has_access? access_type
	roles.any? { |role| role.allows_access? access_type }
end