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

Fixing remove list/join public/private teams on save permission in the admin console #2617

Merged
merged 1 commit into from
Apr 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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