Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_profile: Show subscribe widget for others to non-admins.
Sahil Batra08e5e29054ad
diff --git a/web/src/user_profile.js b/web/src/user_profile.jsindex 7939cef0fdf..5c2ad5ee897 100644--- a/web/src/user_profile.js+++ b/web/src/user_profile.js@@ -340,7 +340,7 @@ export function show_user_profile(user, default_tab_key = "profile-tab") {// want to show the subscribe widget for generic bots since they are system bots and for deactivated users.// Therefore, we also check for that condition.const show_user_subscribe_widget =- (people.can_admin_user(user) || page_params.is_admin) &&+ (people.can_admin_user(user) || settings_data.user_can_subscribe_other_users()) &&!user.is_system_bot &&people.is_person_active(user.user_id);const groups_of_user = user_groups.get_user_groups_of_user(user.user_id);