From acfa47ea966f074472d3dc0dad7884ca6f5d1a00 Mon Sep 17 00:00:00 2001 From: Marcel Santos Date: Mon, 25 Mar 2024 15:02:12 -0600 Subject: [PATCH] Restore authentication and remove sqlite database file --- app/controllers/dashboard_controller.rb | 2 +- app/controllers/events_controller.rb | 2 +- webhooks-sqlite | Bin 28672 -> 0 bytes 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 webhooks-sqlite 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 e039034..f8b30db 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 diff --git a/webhooks-sqlite b/webhooks-sqlite deleted file mode 100644 index b1decc5f267eb0da1de924c45a758862ba9ca985..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 28672 zcmeI)Pfyce90%||YuUtPbb48c2Or0U29UN}2SE>3vlzk{2;)FBX&$#nXk0t!x&@AK z^woGF@g*4Fg1!b5J$dwb#zMM(@hBnRCu{rk_dHM2->2K*Y18e$sroUeAKFpCVp>#k z3L(l1N)<)P3>LBJ7gemaL0xW0qCTyfQJ(fbW%WNwI(uKypXpa~kLG@7--#U*2tWV= z5P$##AOHafKmY>&O<*^j&Mz&I!7td!h`T2Qrx!*q~@9{A1T(8qZM<`qe3v{vIHw)AcV}8UVy1Tcz?d~1Y zt;!*F59&LcH8EhhajA}}eT#j^3QoRVFP*IGLN)**@?Hu>4$+Oclj?(ch(PS>+0MQ6@PCcnB$E*@Wh zV;aXiU|!%KMJ)E)VW%@1NDae`wM&&Ak2+%TP0lx&C1ngZmChfmPD^3zz@9Z0l5_cc z@~4&+i>7~3^q=|<{hO$uKmY;|fB*y_009U<00Izz00ba#YXovy%CJq_HrH%NtSzgU zQ%53pE;SOdazsX~HM4A%t#WbQHsynOO}~=!|L^)&Q9*$K1Rwwb2tWV=5P$##AOHaf zK;U)=JX8%bJo(qgLbf^