Privacy and stuff

This commit is contained in:
benji 2016-02-10 15:23:16 +01:00
parent 524f3194ff
commit ac2dbee62b

View file

@ -8,6 +8,7 @@ class UsersController < ApplicationController
def show def show
@user = User.find_by(name: params[:id]) || User.new @user = User.find_by(name: params[:id]) || User.new
authorize! :read, @user
respond_to do |format| respond_to do |format|
format.html { @transaction = Transaction.new } format.html { @transaction = Transaction.new }
format.json { render json: @user } format.json { render json: @user }