feat: big update 07.05.26
This commit is contained in:
@@ -92,6 +92,9 @@ const ProtectedRoute = ({ children }: { children: React.ReactNode }) => {
|
||||
requiredPermissions.length > 0 &&
|
||||
!requiredPermissions.every((permission) => authStore.canAccess(permission))
|
||||
) {
|
||||
if (location.pathname === "/devices" && authStore.hasRole("devices_maintenance_rw")) {
|
||||
return <>{children}</>;
|
||||
}
|
||||
return <Navigate to="/" replace />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user