このコミットが含まれているのは:
2026-06-03 07:25:24 +09:00
コミット ff5e8c4d49
20個のファイルの変更311行の追加88行の削除
+7
ファイルの表示
@@ -0,0 +1,7 @@
import type { User, UserRole } from '@/types'
const CONTENT_EDITOR_ROLES: readonly UserRole[] = ['admin', 'member']
export const canEditContent = (
user: Pick<User, 'role'> | null | undefined,
): boolean => user != null && CONTENT_EDITOR_ROLES.includes (user.role)