From c8e964c23f542811ce60866fb629ef77a65c3899 Mon Sep 17 00:00:00 2001 From: jomo Date: Sun, 12 Jun 2016 00:54:28 +0200 Subject: clarify write-only notice --- app/views/forums/show.html.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 %> -
This forum is write-only. You can only see your own posts.
+
+ <% 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 %> +
<% end %>
-- cgit v1.2.3