additional checks on forum topic visibility

This commit is contained in:
Albert Yi
2016-11-07 10:48:04 -08:00
parent a22a7c3302
commit eb6746a8a8
9 changed files with 35 additions and 11 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<h1>
Topic: <%= @forum_topic.title %>
<% if @forum_topic.min_level >= User::Levels::BUILDER %>
<% if @forum_topic.min_level >= User::Levels::MODERATOR %>
<span class="level-topic">(<%= User.level_string(@forum_topic.min_level).downcase %>+ only)</span>
<% end %>