message_edit: Make topic editing independent of allow_message_editing.

We now allow editing stream and topic of message even if
allow_message_editing if False using webapp given that is
allowed as per other topic and stream edit specific settings.

Fixes a part of #21739.
This commit is contained in:
Sahil Batra
2022-08-26 12:47:01 +05:30
committed by Tim Abbott
parent 815bf609fa
commit e6ec2badb5
8 changed files with 10 additions and 29 deletions

View File

@@ -173,7 +173,6 @@ function set_timestr(message_container) {
}
function set_topic_edit_properties(group, message) {
group.realm_allow_message_editing = page_params.realm_allow_message_editing;
group.always_visible_topic_edit = false;
group.on_hover_topic_edit = false;
// if a user who can edit a topic, can resolve it as well