Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Fixing remove list/join public/private teams on save permission in th…
Browse files Browse the repository at this point in the history
…e admin console (#2617)
  • Loading branch information
jespino authored Apr 8, 2019
1 parent c9ed853 commit e83b234
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/constants.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e83b234

Please sign in to comment.