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
fixes
jtoar committed Feb 20, 2024
commit a8f8d03d77d59a3f1747d84695df086aa72e3c8b
4 changes: 2 additions & 2 deletions docs/docs/authentication.md
Original file line number Diff line number Diff line change
@@ -142,7 +142,7 @@ const Routes = () => {
You can also restrict access by role by passing a role or an array of roles to the `PrivateSet` component's `hasRole` prop:

```tsx title="web/src/Routes.tsx"
import { Router, Route, PrivateSet, Set } from '@redwoodjs/router'
import { Router, Route, PrivateSet } from '@redwoodjs/router'

const Routes = () => {
return (
@@ -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']}>
2 changes: 1 addition & 1 deletion docs/versioned_docs/version-6.x/authentication.md
Original file line number Diff line number Diff line change
@@ -142,7 +142,7 @@ const Routes = () => {
You can also restrict access by role by passing a role or an array of roles to the `PrivateSet` component's `hasRole` prop:

```tsx title="web/src/Routes.tsx"
import { Router, Route, PrivateSet, Set } from '@redwoodjs/router'
import { Router, Route, PrivateSet } from '@redwoodjs/router'

const Routes = () => {
return (