From 38a209a9704988addb0c5c708fd0bea7288e55e8 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Mon, 12 Mar 2018 00:57:23 -0400 Subject: [PATCH] small bug fix (#1174) 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)