[MM-62609] Show Group Mentions permissions if custom groups is enabled (#30319)

Этот коммит содержится в:
Devin Binnie
2025-02-27 09:25:19 -05:00
коммит произвёл GitHub
родитель ac10bb12a5
Коммит aa1f50cb30

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

@@ -240,7 +240,7 @@ export default class PermissionsTree extends React.PureComponent<Props, State> {
if (scope === 'team_scope' && this.groups[0].id !== 'teams_team_scope') {
this.groups[0].id = 'teams_team_scope';
}
if (license?.IsLicensed === 'true' && license?.LDAPGroups === 'true' && !postsGroup.permissions.includes(Permissions.USE_GROUP_MENTIONS)) {
if (license?.IsLicensed === 'true' && (license?.LDAPGroups === 'true' || config.EnableCustomGroups === 'true') && !postsGroup.permissions.includes(Permissions.USE_GROUP_MENTIONS)) {
postsGroup.permissions.push(Permissions.USE_GROUP_MENTIONS);
}
postsGroup.permissions.push({