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

Merge pull request #457 from Unleash/fix/clone-toggle-crash

disable clone button based on role in old view
This commit is contained in:
Youssef Khedher 2021-10-22 12:06:24 +01:00 committed by GitHub
commit d2f1595193

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(