Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): align v6 docs with the next branch #10034

Merged
merged 11 commits into from
Feb 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes
jtoar committed Feb 20, 2024
commit 395789d87a3ef5eecc8c3e543a532f01f533b171
2 changes: 1 addition & 1 deletion docs/versioned_docs/version-6.x/authentication.md
Original file line number Diff line number Diff line change
@@ -158,7 +158,7 @@ const Routes = () => {
// highlight-next-line
<PrivateSet unauthenticated="forbidden" hasRole="admin">
<Route path="/admin" page={AdminPage} name="admin" />
</Set>
</PrivateSet>

// highlight-next-line
<PrivateSet unauthenticated="forbidden" hasRole={['author', 'editor']}>
Original file line number Diff line number Diff line change
@@ -202,7 +202,7 @@ Going to the admin section now prevents a non-logged in user from seeing posts,
```jsx title="web/src/Routes.jsx"
// highlight-next-line
import { Private, Router, Route, Set } from '@redwoodjs/router'
import { PrivateSet, Router, Route, Set } from '@redwoodjs/router'

import ScaffoldLayout from 'src/layouts/ScaffoldLayout'
import BlogLayout from 'src/layouts/BlogLayout'
@@ -241,7 +241,7 @@ export default Routes
```jsx title="web/src/Routes.tsx"
// highlight-next-line
import { Private, Router, Route, Set } from '@redwoodjs/router'
import { PrivateSet, Router, Route, Set } from '@redwoodjs/router'

import ScaffoldLayout from 'src/layouts/ScaffoldLayout'
import BlogLayout from 'src/layouts/BlogLayout'