We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32ce6fb commit aeb6711Copy full SHA for aeb6711
site/src/modules/management/DeploymentSettingsLayout.tsx
@@ -22,7 +22,16 @@ const DeploymentSettingsLayout: FC = () => {
22
const canViewDeploymentSettingsPage = canViewDeploymentSettings(permissions);
23
24
if (location.pathname === "/deployment") {
25
- return <Navigate to="/deployment/users" replace />;
+ return (
26
+ <Navigate
27
+ to={
28
+ permissions.viewDeploymentValues
29
+ ? "/deployment/general"
30
+ : "/deployment/users"
31
+ }
32
+ replace
33
+ />
34
+ );
35
}
36
37
return (
0 commit comments