mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
user_profile: Disable role dropdown for only owner.
This commit adds code to disable the role dropdown when an owner is editing their own profile and they are the only owner in the organization and a tooltip is shown mentioning that. We already keep the role dropdown disabled when an admin user was managing an owner's profile. Fixes #34830.
This commit is contained in:
committed by
Tim Abbott
parent
e10f1ef260
commit
2378d7700b
@@ -20,7 +20,7 @@
|
||||
<label for="user-role-select" class="modal-field-label">{{t 'User role' }}
|
||||
{{> ../help_link_widget link="/help/user-roles" }}
|
||||
</label>
|
||||
<select name="user-role-select" class="bootstrap-focus-style modal_select" id="user-role-select" data-setting-widget-type="number" {{#if disable_role_dropdown}}disabled{{/if}}>
|
||||
<select name="user-role-select" class="bootstrap-focus-style modal_select" id="user-role-select" data-setting-widget-type="number">
|
||||
{{> dropdown_options_widget option_values=user_role_values}}
|
||||
</select>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user