diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/matrix/identity/v1/check_credentials_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/matrix/identity/v1/check_credentials_controller.rb b/app/controllers/matrix/identity/v1/check_credentials_controller.rb index 1969d354b..1ceba9c20 100644 --- a/app/controllers/matrix/identity/v1/check_credentials_controller.rb +++ b/app/controllers/matrix/identity/v1/check_credentials_controller.rb @@ -3,11 +3,11 @@ class Matrix::Identity::V1::CheckCredentialsController < Matrix::BaseController def create matrix_profile = matrix_profile_json - return render json: fail_json, status: 403 if matrix_profile.blank? + return render json: fail_json if matrix_profile.blank? render json: matrix_profile rescue ActionController::ParameterMissing, ActiveRecord::RecordNotFound - render json: fail_json, status: 403 + render json: fail_json end private |