Skip to content

Commit

Permalink
fix: do not show Clone content model if no permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Oct 3, 2023
1 parent cc9d1a2 commit f1bd2df
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,22 @@ const ContentModelsDataList: React.FC<ContentModelsDataListProps> = ({
/>
</Tooltip>
)}
<Tooltip
content={"Clone content model"}
placement={"top"}
>
<IconButton
data-testid={
"cms-clone-content-model-button"
}
icon={<CloneIcon />}
label={t`View entries`}
onClick={() => onClone(contentModel)}
/>
</Tooltip>
</>
)}

<Tooltip content={"Clone content model"} placement={"top"}>
<IconButton
data-testid={"cms-clone-content-model-button"}
icon={<CloneIcon />}
label={t`View entries`}
onClick={() => onClone(contentModel)}
/>
</Tooltip>

{canDelete(contentModel, "cms.contentModel") && (
<>
{contentModel.plugin ? (
Expand Down

0 comments on commit f1bd2df

Please sign in to comment.