Skip to content

Commit a706444

Browse files
committed
Require users to be logged in to search
1 parent 9def48f commit a706444

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/controllers/search_controller.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
class SearchController < ApplicationController
2+
before_action :authenticate_user!
3+
24
def results
35
@query = params[:q]
46

0 commit comments

Comments
 (0)