cluster editor can manage certificates
@@ -104,7 +104,10 @@ class CertificateListPageRaw extends React.PureComponent<Props, State> {
};
private renderMoreActions = (cert: Certificate) => {
+ const { canEditCluster } = this.props;
return (
+ <>
+ {canEditCluster() && (
<>
{cert.isSelfManaged && (
<IconLinkWithToolTip tooltipTitle="Edit" aria-label="edit" to={`/certificates/${cert.name}/edit`}>
@@ -116,6 +119,9 @@ class CertificateListPageRaw extends React.PureComponent<Props, State> {
popupTitle="DELETE CERTIFICATE?"
confirmedAction={() => this.confirmDelete(cert)}
/>
+ </>
+ )}
+
{/* <IconButtonWithTooltip
tooltipTitle="Delete"
aria-label="delete"
