feat: optional provider
This commit is contained in:
1 parent
57b8263acd
commit
edfa95057b
11 files changed
+267
-85
No files matched your search
@@ -23,7 +23,7 @@ export function RoutePrivate({
|
||||
return <PageLoading />;
|
||||
}
|
||||
|
||||
if (!user) {
|
||||
if (!user || !pathname.startsWith(`/${user.id}`)) {
|
||||
return (
|
||||
<Navigate
|
||||
to={unauthorizedRedirectTo}
|
||||
|
||||
Reference in new issue
Block a user