skip api check for forum and comment endpoints

This commit is contained in:
Albert Yi
2017-01-10 15:06:34 -08:00
parent 63c218d71d
commit 8db970f9f3
3 changed files with 4 additions and 1 deletions

View File

@@ -3,7 +3,8 @@ class ForumPostsController < ApplicationController
before_filter :member_only, :except => [:index, :show]
before_filter :load_post, :only => [:edit, :show, :update, :destroy, :undelete]
before_filter :check_min_level, :only => [:edit, :show, :update, :destroy, :undelete]
skip_before_filter :api_check
def new
if params[:topic_id]
@forum_topic = ForumTopic.find(params[:topic_id])