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:
sahil839
2020-06-04 03:00:34 +05:30
committed by Tim Abbott
parent aa70baba71
commit c7a68d60f3
9 changed files with 46 additions and 5 deletions

View File

@@ -60,6 +60,7 @@ exports.build_page = function () {
realm_signup_notifications_stream_id: page_params.realm_signup_notifications_stream_id,
is_admin: page_params.is_admin,
is_guest: page_params.is_guest,
is_owner: page_params.is_owner,
realm_icon_source: page_params.realm_icon_source,
realm_icon_url: page_params.realm_icon_url,
realm_logo_source: page_params.realm_logo_source,