From ad8328fba354cbb0b838f4439ebd0fd8b3f7ae51 Mon Sep 17 00:00:00 2001 From: anaghwadhwa123 Date: Wed, 29 Jul 2026 16:05:50 +1000 Subject: [PATCH] fix(api): secure settings api against unauthenticated access --- app/api/settings_api.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/api/settings_api.rb b/app/api/settings_api.rb index 49968392ca..eaa261cb47 100644 --- a/app/api/settings_api.rb +++ b/app/api/settings_api.rb @@ -1,6 +1,12 @@ require 'grape' class SettingsApi < Grape::API + helpers AuthenticationHelpers + + before do + authenticated? + end + # # Returns the current auth method #