Fix #4155: Fix profile/settings metadata discrepancy.

This commit is contained in:
evazion
2019-09-05 00:14:11 -05:00
parent 3af352c76a
commit 4fb24c812f
3 changed files with 14 additions and 12 deletions

View File

@@ -19,6 +19,7 @@ class UsersController < ApplicationController
if @user.is_anonymous?
redirect_to new_session_path
else
params[:action] = "edit"
respond_with(@user, template: "users/edit")
end
end
@@ -53,6 +54,7 @@ class UsersController < ApplicationController
@user = CurrentUser.user
if @user.is_member?
params[:action] = "show"
respond_with(@user, methods: @user.full_attributes, template: "users/show")
elsif request.format.html?
redirect_to new_session_path