Added ban reason #41

Merged
bruncbrunc merged 7 commits from bna into master 2017-10-31 22:20:56 -04:00
Showing only changes of commit 1ec464a4fc - Show all commits

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