From 1112bda59fc4d62d106359c40b28f931ff29c957 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sat, 10 Mar 2018 22:40:20 -0500 Subject: [PATCH] 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 --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 8841cea3..8070a397 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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)