settings_data: Remove redundant check from user_can_edit_topic_of_any_message.

We already check the everyone case in user_has_permission so there is no
need to check it in user_can_edit_topic_of_any_message.
This commit is contained in:
Sahil Batra 2021-11-24 13:09:21 +05:30 committed by Tim Abbott
parent 8411c6eb21
commit 83a9401a89
1 changed files with 0 additions and 6 deletions

View File

@ -223,12 +223,6 @@ export function user_can_add_custom_emoji(): boolean {
}
export function user_can_edit_topic_of_any_message(): boolean {
if (
page_params.realm_edit_topic_policy ===
settings_config.common_message_policy_values.by_everyone.code
) {
return true;
}
return user_has_permission(page_params.realm_edit_topic_policy);
}