このコミットが含まれているのは:
2026-06-03 07:25:24 +09:00
コミット ff5e8c4d49
20個のファイルの変更311行の追加88行の削除
+2 -1
ファイルの表示
@@ -12,6 +12,7 @@ import { Button } from '@/components/ui/button'
import { toast } from '@/components/ui/use-toast'
import { SITE_TITLE } from '@/config'
import { apiGet, apiPost } from '@/lib/api'
import { canEditContent } from '@/lib/users'
import Forbidden from '@/pages/Forbidden'
import type { FC } from 'react'
@@ -22,7 +23,7 @@ type Props = { user: User | null }
const PostNewPage: FC<Props> = ({ user }) => {
const editable = ['admin', 'member'].some (r => user?.role === r)
const editable = canEditContent (user)
const navigate = useNavigate ()