diff --git a/src/routes/PrivateRoute/index.tsx b/src/routes/PrivateRoute/index.tsx
index ded5c5a..d750a9f 100644
--- a/src/routes/PrivateRoute/index.tsx
+++ b/src/routes/PrivateRoute/index.tsx
@@ -4,16 +4,10 @@ import { localStorageKeys } from '@constants/localStorageKeys.ts'
import { LocalStorage } from '@utils/localStorageUtils.ts'
-import useRole from '@hooks/useRole.tsx'
-
import { routePaths } from '@routes/routePaths.ts'
-import { PermissionKeys } from '@type/roles.type.ts'
-
const PrivateRoute = () => {
- const { hasPermission } = useRole()
-
const location = useLocation()
const userToken = LocalStorage.get(localStorageKeys.USER_TOKEN)
@@ -22,10 +16,6 @@ const PrivateRoute = () => {
return
}
- if ( location.pathname !=='/' && !hasPermission(PermissionKeys.read)) {
- return
- }
-
return
}