Skip to content

Commit

Permalink
Display only in hosted or local
Browse files Browse the repository at this point in the history
  • Loading branch information
braginini committed Dec 12, 2023
1 parent 5ab92ac commit 00b8bc8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ export const Settings = () => {
"System settings",
"sub2",
<SettingOutlined />,
[getItem("Authentication", "auth"), getItem("Groups", "groups"), getItem("Identity provider", "idp"), getItem("Danger zone", "danger", undefined, undefined, undefined, !isOwner)],
[getItem("Authentication", "auth"), getItem("Groups", "groups"), getItem("Identity provider", "idp", undefined, undefined, undefined, !(isNetBirdHosted() || isLocalDev())), getItem("Danger zone", "danger", undefined, undefined, undefined, !isOwner)],
"group"
),
];
Expand Down Expand Up @@ -1066,6 +1066,7 @@ export const Settings = () => {
</a>
</Text>
</Col>
{(isNetBirdHosted() || isLocalDev()) && (
<Col span={24}
style={{ marginTop: "10px", marginBottom: "24px" }}>
<label
Expand Down Expand Up @@ -1099,7 +1100,7 @@ export const Settings = () => {
to enable this feature
</Text>
</Paragraph>
</Col>
</Col>)}
</>
)
}
Expand Down

0 comments on commit 00b8bc8

Please sign in to comment.