update correct url for admin/settings
This commit is contained in:
+6
-1
@@ -217,7 +217,12 @@ function App() {
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/owner/settings" element={
|
||||
<ProtectedRoute allowedRoles={['OWNER','ADMIN']}>
|
||||
<ProtectedRoute allowedRoles={['OWNER']}>
|
||||
<OrgSettings />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/admin/settings" element={
|
||||
<ProtectedRoute allowedRoles={['ADMIN']}>
|
||||
<OrgSettings />
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
|
||||
@@ -170,7 +170,7 @@ const Layout = () => {
|
||||
},
|
||||
{ to: "/admin/estimates", icon: Calculator, label: "Estimates" },
|
||||
{ to: "/admin/subcontractor-tasks", icon: HardHat, label: "Subcontractor Tasks" },
|
||||
{ to: "/owner/settings", icon: Settings, label: "Org Settings" },
|
||||
{ to: "/admin/settings", icon: Settings, label: "Org Settings" },
|
||||
...commonItems,
|
||||
];
|
||||
case 'CONTRACTOR':
|
||||
|
||||
Reference in New Issue
Block a user