Release 2025-05-19
This commit is contained in:
11
web/src/components/AdminOnly.astro
Normal file
11
web/src/components/AdminOnly.astro
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
import type { AstroChildren } from '../lib/astro'
|
||||
|
||||
type Props = {
|
||||
children: AstroChildren
|
||||
}
|
||||
|
||||
//
|
||||
---
|
||||
|
||||
{!!Astro.locals.user?.admin && <slot />}
|
||||
Reference in New Issue
Block a user