utilized @user variable

This commit is contained in:
MrYummy
2017-06-21 01:19:02 +02:00
parent 8dc051ea46
commit 1ec464a4fc

View File

@@ -30,8 +30,7 @@ class UsersController < ApplicationController
end
def show
user = User.find(params[:id])
@ban_json = JSON.parse(File.read("/etc/minecraft/redstoner/banned-players.json")).detect {|u| u["uuid"] == user.uuid}
@ban_json = JSON.parse(File.read("/etc/minecraft/redstoner/banned-players.json")).detect {|u| u["uuid"] == @user.uuid}
end
# SIGNUP