mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
realm owner: Add frontend implementation of owner role.
This commit adds the option of owner role in user role dropdown and also takes care of the restrictions while adding/removing owner status of the user. This commit also handles the places where we dispaly role of the user in UI.
This commit is contained in:
@@ -243,7 +243,9 @@ exports.get_user_time = function (user_id) {
|
||||
exports.get_user_type = function (user_id) {
|
||||
const user_profile = exports.get_by_user_id(user_id);
|
||||
|
||||
if (user_profile.is_admin) {
|
||||
if (user_profile.is_owner) {
|
||||
return i18n.t("Owner");
|
||||
} else if (user_profile.is_admin) {
|
||||
return i18n.t("Administrator");
|
||||
} else if (user_profile.is_guest) {
|
||||
return i18n.t("Guest");
|
||||
|
||||
Reference in New Issue
Block a user