Update channel permissions for v4 endpoints (#5829)

* Fix join channel permission for v4 endpoint

* Allow regular users to get public channels they are not in

* Fix unit test
Этот коммит содержится в:
Joram Wilander
2017-03-22 11:13:44 -04:00
коммит произвёл Corey Hulen
родитель 0e98dfa445
Коммит 61b1237c20
5 изменённых файлов: 126 добавлений и 32 удалений

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

@@ -3111,6 +3111,14 @@
"id": "authentication.permissions.create_group_channel.name",
"translation": "Create Group Message"
},
{
"id": "authentication.permissions.read_public_channel.description",
"translation": "Ability to read public channels"
},
{
"id": "authentication.permissions.read_public_channel.name",
"translation": "Read Public Channels"
},
{
"id": "authentication.permissions.create_team_roles.description",
"translation": "Ability to create new teams"