Privacy and stuff
This commit is contained in:
parent
524f3194ff
commit
ac2dbee62b
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ class UsersController < ApplicationController
|
|||
|
||||
def show
|
||||
@user = User.find_by(name: params[:id]) || User.new
|
||||
authorize! :read, @user
|
||||
respond_to do |format|
|
||||
format.html { @transaction = Transaction.new }
|
||||
format.json { render json: @user }
|
||||
|
|
Loading…
Reference in a new issue