FEATURE: blocked users can send and reply to private messages from staff
This commit is contained in:
@@ -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?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user