Skip to content
This repository has been archived by the owner on Mar 22, 2020. It is now read-only.

Commit

Permalink
Mini fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atton committed Jul 13, 2018
1 parent 5080162 commit f417ba2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/ruby/app.rb
Expand Up @@ -233,14 +233,13 @@ def user
return redirect '/login', 303
end

@channels = get_channel_list

@user = User.find_by(name: params[:user_name])

if @user.nil?
return 404
end

@channels = get_channel_list
@self_profile = user['id'] == @user['id']
erb :profile
end
Expand Down

0 comments on commit f417ba2

Please sign in to comment.