mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-30 21:22:12 +02:00
Add inbox locking setting to privacy settings
This commit is contained in:
parent
049f92e138
commit
f6c28eefbd
2 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,8 @@ class Settings::PrivacyController < ApplicationController
|
||||||
def edit; end
|
def edit; end
|
||||||
|
|
||||||
def update
|
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_public_timeline,
|
||||||
:privacy_allow_stranger_answers,
|
:privacy_allow_stranger_answers,
|
||||||
:privacy_show_in_search)
|
:privacy_show_in_search)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
.card
|
.card
|
||||||
.card-body
|
.card-body
|
||||||
= bootstrap_form_for(current_user, url: settings_privacy_path, method: :patch, data: { turbo: false }) do |f|
|
= 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_anonymous_questions
|
||||||
= f.check_box :privacy_allow_public_timeline
|
= f.check_box :privacy_allow_public_timeline
|
||||||
= f.check_box :privacy_allow_stranger_answers
|
= f.check_box :privacy_allow_stranger_answers
|
||||||
|
|
Loading…
Reference in a new issue