From 56769780966ac4843a977154916996dda87b0022 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Wed, 1 Mar 2017 16:29:00 -0800 Subject: [PATCH] require membership to see post history --- app/controllers/post_versions_controller.rb | 1 + app/views/posts/show.html.erb | 23 +++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/app/controllers/post_versions_controller.rb b/app/controllers/post_versions_controller.rb index 2427b9074..ade388b63 100644 --- a/app/controllers/post_versions_controller.rb +++ b/app/controllers/post_versions_controller.rb @@ -1,4 +1,5 @@ class PostVersionsController < ApplicationController + before_filter :member_only respond_to :html, :xml, :json def index diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index eab4cbcca..b11b8451a 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -19,18 +19,19 @@

Options

<%= render "posts/partials/show/options", :post => @post %> + +
+

History

+ +
+ <% end %> - -
-

History

- -
- +