mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
UX: Split hide_profile_and_presence
user option (#29632)
It splits the hide_profile_and_presence user option and the default_hide_profile_and_presence site setting for more granular control. It keeps the option to hide the profile under /u/username/preferences/interface and adds the presence toggle in the quick user menu. Co-authored-by: Régis Hanol <regis@hanol.fr>
This commit is contained in:
@ -55,7 +55,7 @@ RSpec.describe UserActionsController do
|
||||
context "when user's profile is hidden" do
|
||||
fab!(:post)
|
||||
|
||||
before { post.user.user_option.update_column(:hide_profile_and_presence, true) }
|
||||
before { post.user.user_option.update_column(:hide_profile, true) }
|
||||
|
||||
context "when `allow_users_to_hide_profile` is disabled" do
|
||||
before { SiteSetting.allow_users_to_hide_profile = false }
|
||||
|
Reference in New Issue
Block a user