From b202985eaaeab2b4302d16fc2c323c4d8351e939 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 8 Sep 2019 23:28:02 -0500 Subject: [PATCH] posts/show: make post history pages visible to all. --- app/controllers/post_versions_controller.rb | 2 +- app/views/posts/show.html.erb | 24 +++++++++------------ 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/app/controllers/post_versions_controller.rb b/app/controllers/post_versions_controller.rb index 9dd7b198f..e202c6f22 100644 --- a/app/controllers/post_versions_controller.rb +++ b/app/controllers/post_versions_controller.rb @@ -1,5 +1,5 @@ class PostVersionsController < ApplicationController - before_action :member_only + before_action :member_only, except: [:index, :search] before_action :check_availabililty respond_to :html, :xml, :json diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index 1863d503f..a7c1b46f0 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -24,20 +24,16 @@ <%= render "posts/partials/show/options", :post => @post %> - <% if CurrentUser.is_member? %> -
-

History

- -
- - <% end %> - +
+

History

+ +