auth: guarda server-side em rotas protegidas
- /tickets/[id], /tickets/resolved, /views, /play, /reports/*, /settings agora exigem sessão via requireAuthenticatedSession() - Complementa o middleware e evita casos não-redirecionados em DEV/SSG - Mantém /settings/templates com requireStaffSession() como já estava.
This commit is contained in:
parent
d7dd37f90f
commit
9ac584dcb6
9 changed files with 32 additions and 16 deletions
|
|
@ -1,10 +1,12 @@
|
|||
import { AppShell } from "@/components/app-shell"
|
||||
import { SiteHeader } from "@/components/site-header"
|
||||
import { PlayNextTicketCard } from "@/components/tickets/play-next-ticket-card"
|
||||
import { TicketQueueSummaryCards } from "@/components/tickets/ticket-queue-summary"
|
||||
|
||||
export default function PlayPage() {
|
||||
return (
|
||||
import { AppShell } from "@/components/app-shell"
|
||||
import { SiteHeader } from "@/components/site-header"
|
||||
import { PlayNextTicketCard } from "@/components/tickets/play-next-ticket-card"
|
||||
import { TicketQueueSummaryCards } from "@/components/tickets/ticket-queue-summary"
|
||||
import { requireAuthenticatedSession } from "@/lib/auth-server"
|
||||
|
||||
export default async function PlayPage() {
|
||||
await requireAuthenticatedSession()
|
||||
return (
|
||||
<AppShell
|
||||
header={
|
||||
<SiteHeader
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue