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