Restrict post replacements to mod+ (issue #3348)

This commit is contained in:
Type-kun
2017-11-01 13:19:52 +05:00
parent e243648b91
commit af7c109912
2 changed files with 2 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
class PostReplacementsController < ApplicationController
respond_to :html, :xml, :json
before_filter :approver_only, except: [:index]
before_filter :moderator_only, except: [:index]
def new
@post = Post.find(params[:post_id])