summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMrYummy <elemental428@gmail.com>2017-06-21 01:19:02 +0200
committerMrYummy <elemental428@gmail.com>2017-06-21 01:19:02 +0200
commit1ec464a4fce8db1e7f33706136639376f588632d (patch)
treeae80df0ac25d7aa07a9ece64dc671f5ac0af07cf
parent8dc051ea46ba46c0e2798495f40bfa3e2bb83074 (diff)
utilized @user variable
-rw-r--r--app/controllers/users_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 702d1e3..e188d01 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -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