Method: ApplicationHelper#moderator?
- Defined in:
- app/helpers/application_helper.rb
#moderator? ⇒ Boolean
Is the current user a moderator on the current community?
8 9 10 |
# File 'app/helpers/application_helper.rb', line 8 def moderator? user_signed_in? && (current_user.is_moderator || current_user.is_admin) end |