trimmed UUIDs from banned-players.json

This commit is contained in:
MrYummy
2017-10-31 15:44:18 -04:00
committed by GitHub
parent 2223f88d7b
commit 3fb5924318

View File

@@ -32,7 +32,7 @@ class UsersController < ApplicationController
end
def show
@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"].tr("-", "") == @user.uuid}
end
# SIGNUP