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:
Connor Turland 2018-03-10 22:40:20 -05:00 committed by GitHub
parent bd7bf20810
commit 1112bda59f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)