MM-26206: Add GroupMentions permissions in default channel admin (#14838)

* MM-26206: Add GroupMentions permissions in default channel admin

This permission was skipped from the default permissions function.
Which led to a bug where permissions reset would not bring back
this permission to the different roles.

* Added tests

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Agniva De Sarker
2020-06-29 21:04:29 +05:30
коммит произвёл GitHub
родитель 05dc928576
Коммит a9ba052207
3 изменённых файлов: 8 добавлений и 2 удалений

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

@@ -422,6 +422,7 @@ func MakeDefaultRoles() map[string]*Role {
Description: "authentication.roles.channel_admin.description",
Permissions: []string{
PERMISSION_MANAGE_CHANNEL_ROLES.Id,
PERMISSION_USE_GROUP_MENTIONS.Id,
},
SchemeManaged: true,
BuiltIn: true,