utilized @user variable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user