From b79d4f30aca5b051233fc0f230e8a2a7781309e3 Mon Sep 17 00:00:00 2001 From: nilsding Date: Fri, 12 Dec 2014 17:54:13 +0100 Subject: [PATCH] oy vey --- app/controllers/notifications_controller.rb | 2 ++ app/controllers/public_controller.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 039d4f41..570298b2 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -1,4 +1,6 @@ class NotificationsController < ApplicationController + before_filter :authenticate_user! + def index end end diff --git a/app/controllers/public_controller.rb b/app/controllers/public_controller.rb index 677ef4eb..753542b4 100644 --- a/app/controllers/public_controller.rb +++ b/app/controllers/public_controller.rb @@ -1,4 +1,6 @@ class PublicController < ApplicationController + before_filter :authenticate_user! + def index @timeline = Answer.all.reverse_order.paginate(page: params[:page]) respond_to do |format|