Module: CaptainOveur::Authentication::InstanceMethods
- Defined in:
- lib/captain_oveur/authentication.rb
Instance Method Summary collapse
Instance Method Details
#admin? ⇒ Boolean
17 18 19 |
# File 'lib/captain_oveur/authentication.rb', line 17 def admin? current_user && current_user.admin end |
#admin_only ⇒ Object
21 22 23 |
# File 'lib/captain_oveur/authentication.rb', line 21 def admin_only deny_access("Please Login as an administrator to Access that Feature.") unless admin? end |