Skip to content

Commit

Permalink
[MM-62609] Show Group Mentions permissions if custom groups is enabled (
Browse files Browse the repository at this point in the history
  • Loading branch information
devinbinnie authored Feb 27, 2025
1 parent ac10bb1 commit aa1f50c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit aa1f50c

Please sign in to comment.