mirror of https://github.com/zulip/zulip.git
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:
parent
8411c6eb21
commit
83a9401a89
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue