Skip to content

Commit

Permalink
Require users to be logged in to search
Browse files Browse the repository at this point in the history
  • Loading branch information
drusepth committed Jun 20, 2017
1 parent 9def48f commit a706444
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class SearchController < ApplicationController
before_action :authenticate_user!

def results
@query = params[:q]

Expand Down

0 comments on commit a706444

Please sign in to comment.