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

@@ -5,6 +5,7 @@ class ForumTopicsController < ApplicationController
before_filter :normalize_search, :only => :index
before_filter :load_topic, :only => [:edit, :show, :update, :destroy, :undelete, :new_merge, :create_merge, :subscribe, :unsubscribe]
before_filter :check_min_level, :only => [:show, :edit, :update, :new_merge, :create_merge, :destroy, :undelete, :subscribe, :unsubscribe]
skip_before_filter :api_check
def new
@forum_topic = ForumTopic.new