stream settings: Fix hide change-sub-type when admin unsubscribe stream.

Fixes #10163
This commit is contained in:
Yashashvi Dave 2018-08-05 02:42:13 +05:30 committed by Tim Abbott
parent 29daf76420
commit 069acc08cd
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ exports.hide_sub_settings = function (sub) {
$settings.find(".regular_subscription_settings").removeClass('in');
// Clear email address widget
$settings.find(".email-address").html("");
if (!sub.can_change_stream_permissions) {
$settings.find(".change-stream-privacy").hide();
}
};
exports.show_sub_settings = function (sub) {