Enforce public profiles when private profiles are disabled
What does this MR do and why?
Enforce all user profiles to be public when the Allow users to make their profiles private
instance setting is disabled.
This give admins full control over the visibility of user profiles.
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
- Closes #461701
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screen_Recording_2025-01-07_at_3.27.39_PM
How to set up and validate locally
- Enable the
disallow_private_profiles
feature flag and add an EE license. - Configure a user's profile as private:
- Log in as a regular user
- Navigate to http://localhost:3000/-/user_settings/profile
- Scroll to the "Private profile" section
- Check the box labeled "Don't display activity-related personal information on your profile"
- Save changes
- Enable private profiles globally:
- Log in as an admin user
- Go to http://localhost:3000/admin/application_settings/general#js-account-settings
- Enable the option "Allow users to make their profiles private"
- Save changes
- Verify private profile visibility:
- Log out or open an incognito window
- Navigate to http://localhost:3000/[username]
- Confirm that the profile appears private (limited information visible)
- Disable private profiles globally:
- Log back in as an admin user
- Return to http://localhost:3000/admin/application_settings/general#js-account-settings
- Disable the option "Allow users to make their profiles private"
- Save changes
- Verify enforced public profile:
- Log out or open an incognito window
- Navigate to http://localhost:3000/[username] again
- Confirm that the profile now appears public (user details should be visible) /assign me
Edited by Shane Maglangit