Add inbox locking setting to privacy settings
This commit is contained in:
parent
049f92e138
commit
f6c28eefbd
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue