FEATURE: blocked users can send and reply to private messages from staff

This commit is contained in:
Neil Lalonde
2016-01-22 12:54:18 -05:00
parent 9569235d76
commit 685ba1eb7f
6 changed files with 47 additions and 13 deletions
-8
View File
@@ -96,14 +96,6 @@ class PostsController < ApplicationController
def create
if !is_api? && current_user.blocked?
# error has parity with what user would get if they posted when blocked
# and it went through post creator
render json: {errors: [I18n.t("topic_not_found")]}, status: 422
return
end
@manager_params = create_params
@manager_params[:first_post_checks] = !is_api?