From 34b4de9bd54b8f5f026f5884070cf8fbc1db4633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Fri, 5 Apr 2019 12:02:17 +0200 Subject: [PATCH] Fixing remove list/join public/private teams on save permission in the admin console --- utils/constants.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/constants.jsx b/utils/constants.jsx index 9f2e86e575c2..c6dc64539116 100644 --- a/utils/constants.jsx +++ b/utils/constants.jsx @@ -477,6 +477,10 @@ export const PermissionsScope = { [Permissions.CREATE_GROUP_CHANNEL]: 'system_scope', [Permissions.MANAGE_PUBLIC_CHANNEL_PROPERTIES]: 'channel_scope', [Permissions.MANAGE_PRIVATE_CHANNEL_PROPERTIES]: 'channel_scope', + [Permissions.LIST_PUBLIC_TEAMS]: 'system_scope', + [Permissions.JOIN_PUBLIC_TEAMS]: 'system_scope', + [Permissions.LIST_PRIVATE_TEAMS]: 'system_scope', + [Permissions.JOIN_PRIVATE_TEAMS]: 'system_scope', [Permissions.LIST_TEAM_CHANNELS]: 'team_scope', [Permissions.JOIN_PUBLIC_CHANNELS]: 'team_scope', [Permissions.DELETE_PUBLIC_CHANNEL]: 'channel_scope', @@ -548,6 +552,8 @@ export const DefaultRolePermissions = { Permissions.EDIT_POST, Permissions.MANAGE_CREATE_EMOJIS, Permissions.MANAGE_DELETE_EMOJIS, + Permissions.LIST_PUBLIC_TEAMS, + Permissions.JOIN_PUBLIC_TEAMS, ], channel_admin: [ Permissions.MANAGE_CHANNEL_ROLES,