WIP Add notifications preferences page
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Râu Cao
2023-04-03 13:55:58 +02:00
parent 6848bd739c
commit 334b47353e
4 changed files with 21 additions and 3 deletions

View File

@@ -29,8 +29,9 @@ class SettingsController < ApplicationController
def set_settings_section
@settings_section = params[:section]
allowed_sections = [:profile, :account, :notifications]
unless [:profile, :account].include?(@settings_section.to_sym)
unless allowed_sections.include?(@settings_section.to_sym)
redirect_to setting_path(:profile)
end
end