diff options
-rw-r--r-- | app/views/forums/show.html.erb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb index 0612dad..60f3185 100644 --- a/app/views/forums/show.html.erb +++ b/app/views/forums/show.html.erb @@ -6,7 +6,13 @@ <% end %> <% if @forum.role_read && @forum.role_write && @forum.role_write < @forum.role_read %> - <div class="lockednote">This forum is write-only. You can only see your own posts.</div> + <div class="lockednote"> + <% if @forum.role_read > current_user.role %> + This forum is write-only. You can only see your own posts. + <% else %> + This forum is write-only for users ranked under <%= @forum.role_read %>. They can only see their own posts. + <% end %> + </div> <% end %> <div id="forum_groups"> |