small bug fix
if someone besides one of "us" tried to change their password, and their settings, it wouldn't work in the typical case it would work fine
This commit is contained in:
parent
bd7bf20810
commit
1112bda59f
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class UsersController < ApplicationController
|
|||
correct_pass = @user.valid_password?(params[:current_password])
|
||||
|
||||
if correct_pass && @user.update_attributes(user_params)
|
||||
update_follow_settings(@user, params[:settings]) if is_tester(@user)
|
||||
update_follow_settings(@user, params[:settings])
|
||||
@user.image = nil if params[:remove_image] == '1'
|
||||
@user.save
|
||||
sign_in(@user, bypass: true)
|
||||
|
|
Loading…
Add table
Reference in a new issue