From 387e7e2cd39037850afa383d60afe78aa325dcbe Mon Sep 17 00:00:00 2001 From: Marcel Santos Date: Tue, 26 Mar 2024 11:56:06 -0600 Subject: [PATCH] Restore authentication --- app/controllers/dashboard_controller.rb | 2 +- app/controllers/events_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index b49d5d1..56f5fc0 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -1,5 +1,5 @@ class DashboardController < ApplicationController - #before_action :authenticate_user_action! + before_action :authenticate_user_action! def index @no_events = Event.count == 0 diff --git a/app/controllers/events_controller.rb b/app/controllers/events_controller.rb index 4c04928..c8bcec1 100644 --- a/app/controllers/events_controller.rb +++ b/app/controllers/events_controller.rb @@ -1,5 +1,5 @@ class EventsController < ApplicationController - #before_action :authenticate_user_action! + before_action :authenticate_user_action! def index # render json: Event.order(created_at: :desc).limit(100), each_serializer: EventSerializer