Class: Biovision::Components::TestimonialsComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/services/biovision/components/testimonials_component.rb

Overview

Handler for testimonials component

Constant Summary collapse

SLUG =
'testimonials'

Instance Method Summary collapse

Instance Method Details

#allow?(options = {}) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/services/biovision/components/testimonials_component.rb', line 9

def allow?(options = {})
  UserPrivilege.user_has_privilege?(user, :testimonials_manager)
end