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:
parent
0636e1f75e
commit
f2879cea79
@ -367,6 +367,7 @@ const FeatureView = ({
|
|||||||
featureToggleName={featureToggle.name}
|
featureToggleName={featureToggle.name}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
|
disabled={!hasAccess(CREATE_FEATURE, project)}
|
||||||
title="Create new feature toggle by cloning configuration"
|
title="Create new feature toggle by cloning configuration"
|
||||||
component={Link}
|
component={Link}
|
||||||
to={getToggleCopyPath(
|
to={getToggleCopyPath(
|
||||||
|
Loading…
Reference in New Issue
Block a user