MM-53687: Block changes to name, display name or purpose for direct and group messages (#24199)

* block changes to name, display name or purpose for direct and group messages

* add test

* fix condition

* update patch_channel

* update error message

* fix message

* fix lint

* fix i18n

```release-note
NONE
```

---------

Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
KyeongSoo Kim
2023-09-05 18:30:32 +09:00
коммит произвёл GitHub
родитель 947f71ae74
Коммит de000e888d
3 изменённых файлов: 139 добавлений и 0 удалений

Просмотреть файл

@@ -339,6 +339,10 @@
"id": "api.channel.patch_update_channel.forbidden.app_error",
"translation": "Failed to update the channel."
},
{
"id": "api.channel.patch_update_channel.update_direct_or_group_messages_not_allowed.app_error",
"translation": "You are not allowed to update the name, display_name, and purpose of direct or group messages."
},
{
"id": "api.channel.post_channel_privacy_message.error",
"translation": "Failed to post channel privacy update message."
@@ -431,6 +435,10 @@
"id": "api.channel.update_channel.typechange.app_error",
"translation": "Channel type cannot be updated."
},
{
"id": "api.channel.update_channel.update_direct_or_group_messages_not_allowed.app_error",
"translation": "You are not allowed to update the name, display_name, and purpose of direct or group messages."
},
{
"id": "api.channel.update_channel_member_roles.changing_guest_role.app_error",
"translation": "Invalid channel member update: You can't add or remove the guest role manually."