Skip to content

Commit

Permalink
CM-812: adjustment to group enrollment summary in group searcher
Browse files Browse the repository at this point in the history
  • Loading branch information
sniedzielski committed May 23, 2024
1 parent f837b1b commit 5f37a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/GroupSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function GroupSearcher({
? `${group?.head?.firstName} ${group?.head?.lastName}`
: formatMessage(intl, 'group', 'noHeadSpecified')),
];
if (rights.includes(RIGHT_GROUP_UPDATE)) {
if (rights.includes(RIGHT_GROUP_UPDATE) && isModalEnrollment === false) {
formatters.push((group) => (
<Tooltip title={formatMessage(intl, 'individual', 'editButtonTooltip')}>
<IconButton
Expand All @@ -147,7 +147,7 @@ function GroupSearcher({
</Tooltip>
));
}
if (rights.includes(RIGHT_GROUP_DELETE)) {
if (rights.includes(RIGHT_GROUP_DELETE) && isModalEnrollment === false) {
formatters.push((group) => (
<Tooltip title={formatMessage(intl, 'individual', 'deleteButtonTooltip')}>
<IconButton
Expand Down

0 comments on commit 5f37a96

Please sign in to comment.