Add inbox locking setting to privacy settings

This commit is contained in:
Andreas Nedbal 2022-11-06 15:00:28 +01:00
parent 049f92e138
commit f6c28eefbd
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,8 @@ class Settings::PrivacyController < ApplicationController
def edit; end
def update
user_attributes = params.require(:user).permit(:privacy_allow_anonymous_questions,
user_attributes = params.require(:user).permit(:privacy_lock_inbox,
:privacy_allow_anonymous_questions,
:privacy_allow_public_timeline,
:privacy_allow_stranger_answers,
:privacy_show_in_search)

View File

@ -1,6 +1,7 @@
.card
.card-body
= bootstrap_form_for(current_user, url: settings_privacy_path, method: :patch, data: { turbo: false }) do |f|
= f.check_box :privacy_lock_inbox
= f.check_box :privacy_allow_anonymous_questions
= f.check_box :privacy_allow_public_timeline
= f.check_box :privacy_allow_stranger_answers