Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

popovers: Remove the "Manage this user" link for deactivated users.

yogesh sirsat211f137fc83f
diff --git a/static/templates/user_info_popover_content.hbs b/static/templates/user_info_popover_content.hbs
index 7477881d068..9ed8a585447 100644
--- a/static/templates/user_info_popover_content.hbs
+++ b/static/templates/user_info_popover_content.hbs
@@ -184,11 +184,13 @@
</li>
{{/if}}
{{#if show_manage_user_option}}
- <li>
- <a tabindex="0" class="sidebar-popover-manage-user">
- <i class="fa fa-edit" aria-hidden="true"></i> {{#tr}}Manage this user{{/tr}}
- </a>
- </li>
+ {{#if is_active}}
+ <li>
+ <a tabindex="0" class="sidebar-popover-manage-user">
+ <i class="fa fa-edit" aria-hidden="true"></i> {{#tr}}Manage this user{{/tr}}
+ </a>
+ </li>
+ {{/if}}
{{/if}}
{{/if}}
</ul>