1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

disable clone button based on role in old view

This commit is contained in:
Youssef 2021-10-21 22:03:38 +01:00
parent 0636e1f75e
commit f2879cea79

View File

@ -367,6 +367,7 @@ const FeatureView = ({
featureToggleName={featureToggle.name}
/>
<Button
disabled={!hasAccess(CREATE_FEATURE, project)}
title="Create new feature toggle by cloning configuration"
component={Link}
to={getToggleCopyPath(